diff options
Diffstat (limited to 'pyload/utils')
-rw-r--r-- | pyload/utils/printer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/utils/printer.py b/pyload/utils/printer.py index 1122c7f4c..e4f6a360a 100644 --- a/pyload/utils/printer.py +++ b/pyload/utils/printer.py @@ -7,10 +7,10 @@ colorama.init(autoreset=True) def color(color, text): - return colorama.Fore.(c.upper())(text) + return colorama.Fore[c.upper()](text) for c in colorama.Fore: - eval("%(color) = lambda msg: color(%(color), msg)" % {'color': c.lower()} + eval("%(color)s = lambda msg: color(%(color)s, msg)" % {'color': c.lower()}) def overline(line, msg): |