Skip to content
Snippets Groups Projects
Commit fc1a49a7 authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #2331 from vjpai/tty

Don't send terminal escapes if we're outputing to a file
parents 874e5f87 a29d2d7c
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ def message(tag, msg, explanatory_text=None, do_newline=False):
return
message.old_tag = tag
message.old_msg = msg
if platform.system() == 'Windows':
if platform.system() == 'Windows' or not sys.stdout.isatty():
if explanatory_text:
print explanatory_text
print '%s: %s' % (tag, msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment