From 534c91d08316d92a218ed7448fce0be12b11d4df Mon Sep 17 00:00:00 2001 From: Avi Weinstock Date: Mon, 2 Mar 2015 18:21:14 -0500 Subject: Filter out "Downloading rust snapshot" percent indicator in mach's output based on sys.stdout.isatty() (Issue #5043). --- python/servo/bootstrap_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/servo/bootstrap_commands.py') diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index cca2589b52c..68edbdd38c8 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -38,7 +38,7 @@ def download(desc, src, dst): sys.stdout.flush() print("Downloading %s..." % desc) - dumb = os.environ.get("TERM") == "dumb" + dumb = (os.environ.get("TERM") == "dumb") or (not sys.stdout.isatty()) PanickyUrlOpener().retrieve(src, dst, None if dumb else report) if not dumb: print() -- cgit v1.2.3