auto merge of #5122 : aweinstock314/servo/master, r=kmcallister

...t based on sys.stdout.isatty() (Issue #5043).
This commit is contained in:
bors-servo 2015-03-02 20:18:49 -07:00
commit 315a2349e8

View file

@ -38,7 +38,7 @@ def download(desc, src, dst):
sys.stdout.flush() sys.stdout.flush()
print("Downloading %s..." % desc) 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) PanickyUrlOpener().retrieve(src, dst, None if dumb else report)
if not dumb: if not dumb:
print() print()