Ugh. Syntax.

main
Vincent Driessen 12 years ago
parent 11794ccef5
commit d80fa53d7e

@ -73,7 +73,7 @@ class _Colorizer(object):
return self.codes["reset"] return self.codes["reset"]
def colorize(self, color_key, text): def colorize(self, color_key, text):
if not sys.stdout.isatty() if not sys.stdout.isatty():
return text return text
else: else:
return self.codes[color_key] + text + self.codes["reset"] return self.codes[color_key] + text + self.codes["reset"]

Loading…
Cancel
Save