mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
auto merge of #5122 : aweinstock314/servo/master, r=kmcallister
...t based on sys.stdout.isatty() (Issue #5043).
This commit is contained in:
commit
315a2349e8
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue