From: David Mazary Date: Sun, 18 Mar 2012 19:29:20 +0000 (-0300) Subject: list comprehension instead of map. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2407adc20ccc5e14da037423c19ebd43b70bdf98;p=xonotic%2Fxonstat.git list comprehension instead of map. --- 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)