mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Filter out "Downloading rust snapshot" percent indicator in mach's output based on sys.stdout.isatty() (Issue #5043).
This commit is contained in:
parent
891dd496e3
commit
534c91d083
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue