From 5125f9e06715211bf8b3528f2f0b9c81a9720638 Mon Sep 17 00:00:00 2001 From: Eduardo Rodrigues <eduardo.rodrigues@cern.ch> Date: Sat, 27 Feb 2021 09:57:47 +0000 Subject: [PATCH] Fixed formatting patch generated by https://gitlab.cern.ch/lhcb/DaVinci/-/jobs/12369585 --- Phys/DaVinci/python/DaVinci/optionChecker.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Phys/DaVinci/python/DaVinci/optionChecker.py b/Phys/DaVinci/python/DaVinci/optionChecker.py index 8aeaa68fc..9475f3249 100644 --- a/Phys/DaVinci/python/DaVinci/optionChecker.py +++ b/Phys/DaVinci/python/DaVinci/optionChecker.py @@ -61,10 +61,9 @@ def option_checker(name, value): print_allowed_option_values(allowedValues, name) raise DVOptionError(name, value) except KeyError: - print set_color( - "red" - ) + "You are trying to check the unknown option %s!" % name + set_color( - "plain") + print(set_color("red") + + "You are trying to check the unknown option %s!" % name + + set_color("plain")) print_allowed_option_values() @@ -87,14 +86,14 @@ def print_allowed_option_values(allowedValues, name=None): Print the allowed values for the DaVinci option configurations. """ if name is None: - print set_color( - "green") + "Known job option configurations and allowed values:" + print(set_color("green") + + "Known job option configurations and allowed values:") for name, values in allowedValues.iteritems(): - print "%s \t : %s" % (name, value), set_color("plain") + print("%s \t : %s" % (name, value), set_color("plain")) else: - print set_color( - "green") + "Allowed values for DaVinci option %s:" % name - print allowedValues[name], set_color("plain") + print(set_color("green") + + "Allowed values for DaVinci option %s:" % name) + print(allowedValues[name], set_color("plain")) def set_color(key): -- GitLab