Ok i am being lazy using the try catch

main
Justin Unwin 12 years ago
parent 17be896744
commit af04545bbf

@ -70,9 +70,9 @@ class _Colorizer(object):
self.codes["fuscia"] = self.codes["fuchsia"] self.codes["fuscia"] = self.codes["fuchsia"]
self.codes["white"] = self.codes["bold"] self.codes["white"] = self.codes["bold"]
try: if hasattr(sys.stdout, "isatty"):
self.notty = not sys.stdout.isatty() self.notty = not sys.stdout.isatty()
except: else:
self.notty = True self.notty = True
def reset_color(self): def reset_color(self):

Loading…
Cancel
Save