Skip to content

Commit

Permalink
removed last commas alone on lines, and adjusted some spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Aug 18, 2023
1 parent 21b0824 commit 8eab9fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sarracenia/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2150,9 +2150,9 @@ def dump(self):
print('\t\"%s\": %s' % (pid, json.dumps(self.procs[pid], sort_keys=True, indent=4) ))
if procs_length-1 > index:
print(',')
print('}')
print('},')

print('\n\n,"Configs\" : {\n\n')
print('\n\n"Configs\" : {\n\n')
configLength = len(self.configs)
for indexConfig,c in enumerate(self.configs):
lengthSelfConfigC = len(self.configs[c])
Expand All @@ -2167,7 +2167,7 @@ def dump(self):
if configLength-1 > indexConfig or configLength == 0:
print(',')

print('\n\n},"States": { \n\n')
print('},\n\n"States": { \n\n')
lengthSelfStates = len(self.states)
for indexSelfStates,c in enumerate(self.states):
print('\t\"%s\": { ' % c)
Expand All @@ -2176,7 +2176,7 @@ def dump(self):
print('\t\t\"%s\" : %s ' % (cfg, json.dumps(self.states[c][cfg])))
if lengthC -1 > indexC:
print(',')
print( "\t}" )
print( "\t}", end="")
if lengthSelfStates -1 > indexSelfStates:
print(',')
print('},')
Expand Down Expand Up @@ -2239,7 +2239,7 @@ def dump(self):
print('\t\t\"%s/%s_%d\"' % (c, cfg, i),end="")
if lengthMissing - 1 > indexMissing:
print(',')
print('\t\t] \n}')
print('] }')

def status(self):
""" v3 Printing prettier statuses for each component/configs found
Expand Down

0 comments on commit 8eab9fd

Please sign in to comment.