Skip to content

Commit 601fbc5

Browse files
authored
Merge pull request cms-sw#33634 from missirol/devel_configTrailingWhitespaces
avoiding trailing whitespaces in config dump
2 parents e1e024f + 821ee25 commit 601fbc5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

FWCore/ParameterSet/python/Mixins.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,10 @@ def dumpPython(self, options=PrintOptions()):
671671
if i == 0:
672672
if n>nPerLine: result += '\n'+options.indentation()
673673
else:
674-
result += ', '
675674
if i % nPerLine == 0:
676-
result += '\n'+options.indentation()
675+
result += ',\n'+options.indentation()
676+
else:
677+
result += ', '
677678
result += self.pythonValueForItem(v,options)
678679
if n>nPerLine:
679680
options.unindent()

0 commit comments

Comments
 (0)