Ok i am being lazy using the try catch

This commit is contained in:
Justin Unwin 2013-06-11 00:07:53 +02:00
parent 17be896744
commit af04545bbf
1 changed files with 2 additions and 2 deletions

View File

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