Skip to content

Commit

Permalink
Fix for printouts with special (for python) chars
Browse files Browse the repository at this point in the history
  • Loading branch information
ggovi committed May 31, 2022
1 parent cfaa87f commit 5749b48
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 5749b48

Please sign in to comment.