Skip to content

Commit

Permalink
Merge pull request #38140 from ggovi/conddb-utilities-conddb-tool-fix…
Browse files Browse the repository at this point in the history
…-7-125X

Conddb tools: fix for printouts containing python-sensitive characters
  • Loading branch information
cmsbuild committed May 31, 2022
2 parents d702482 + 5749b48 commit 72c5200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CondCore/Utilities/scripts/conddb
Expand Up @@ -395,7 +395,10 @@ def output(args, string, *parameters, **kwargs):

output_file = kwargs.get('output_file', sys.stdout)

print(string % parameters + colors.end, end=' ', file=output_file)
to_print = string + colors.end
if len(parameters)>0:
to_print = string % parameters + colors.end
print(to_print, end=' ', file=output_file)

if kwargs.get('newline', True):
print(file=output_file)
Expand Down

0 comments on commit 72c5200

Please sign in to comment.