From 2407adc20ccc5e14da037423c19ebd43b70bdf98 Mon Sep 17 00:00:00 2001 From: David Mazary Date: Sun, 18 Mar 2012 16:29:20 -0300 Subject: [PATCH] list comprehension instead of map. --- xonstat/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonstat/util.py b/xonstat/util.py index 2b1582d..e34adfc 100755 --- a/xonstat/util.py +++ b/xonstat/util.py @@ -91,7 +91,7 @@ def hex_repl(match): if light < _contrast_threshold: light = _contrast_threshold # Get new rgb in 0-255 scale - r, g, b = map((255).__mul__, hls_to_rgb(hue, light, satur)) + r, g, b = tuple([255 * i for i in hls_to_rgb(hue, light, satur)]) return ''.format(r, g, b) -- 2.39.2