_search_regex's "isatty" call fails with Py2exe's
[youtube-dl] / youtube_dl / extractor / common.py
index 11b6ed5246e0e9bbee424b91d839fef9570164d0..1fc0624a35a70c830f144d6749bfcc19e5bf47fb 100644 (file)
@@ -295,7 +295,7 @@ class InfoExtractor(object):
                 mobj = re.search(p, string, flags)
                 if mobj: break
 
-        if sys.stderr.isatty() and os.name != 'nt':
+        if os.name != 'nt' and sys.stderr.isatty():
             _name = u'\033[0;34m%s\033[0m' % name
         else:
             _name = name