Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out "Downloading rust snapshot" percent indicator in mach's outpu... #5122

Merged
merged 1 commit into from Mar 3, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Filter out "Downloading rust snapshot" percent indicator in mach's ou…

…tput based on sys.stdout.isatty() (Issue #5043).
  • Loading branch information
aweinstock314 committed Mar 2, 2015
commit 534c91d08316d92a218ed7448fce0be12b11d4df
@@ -38,7 +38,7 @@ def report(count, bsize, fsize):
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()
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.