From 34bb10d935b2b1bd4b37bfbfa8030c4edd93cd22 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sun, 27 May 2012 23:43:43 +0200 Subject: [PATCH] use colors only if stdout and stderr are both ttys --- waflib/Logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Logs.py b/waflib/Logs.py index af332b51..88b64f34 100644 --- a/waflib/Logs.py +++ b/waflib/Logs.py @@ -74,7 +74,7 @@ colors_lst = { got_tty = not os.environ.get('TERM', 'dumb') in ['dumb', 'emacs'] if got_tty: try: - got_tty = sys.stderr.isatty() + got_tty = sys.stderr.isatty() and sys.stdout.isatty() except AttributeError: got_tty = False