We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db17e7b commit c4396e0Copy full SHA for c4396e0
FWCore/ParameterSet/python/Mixins.py
@@ -697,7 +697,9 @@ def dumpPython(self, options:PrintOptions=PrintOptions()) -> str:
697
if n>=256:
698
#wrap in a tuple since they don't have a size constraint
699
result+=" ("
700
+ wroteAtLeastOne = False
701
for i, v in enumerate(self):
702
+ wroteAtLeastOne = True
703
if i == 0:
704
if n>nPerLine: result += '\n'+options.indentation()
705
else:
@@ -710,7 +712,7 @@ def dumpPython(self, options:PrintOptions=PrintOptions()) -> str:
710
712
result +=' ) '
711
713
moreArgs = self._additionalInitArguments(options)
714
if moreArgs:
- if i > 0:
715
+ if wroteAtLeastOne:
716
result += ', \n' + options.indentation()
717
result += moreArgs
718
if n>nPerLine:
0 commit comments