diff options
author | 2015-04-22 21:27:47 +0200 | |
---|---|---|
committer | 2015-04-22 21:27:47 +0200 | |
commit | 674b2a24f90b3cbf50630ddfdfb6c2b356a7bf7b (patch) | |
tree | 24a575f4c7319a3f9048718a08094bb510f72603 /pyload/utils | |
parent | Spare code cosmetics (10) (diff) | |
parent | little fix (diff) | |
download | pyload-674b2a24f90b3cbf50630ddfdfb6c2b356a7bf7b.tar.xz |
Merge pull request #11 from ardi69/0.4.10
some fixes
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): |