Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2922)

Unified Diff: dart/tools/build.py

Issue 13794003: Redirect tput stderr to /dev/null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/build.py
diff --git a/dart/tools/build.py b/dart/tools/build.py
index f607ec9ef1484b6e769ccb7f9d4389da03466d4e..6334e2ef7d8c442917d1eed1c969360f2baf5b39 100755
--- a/dart/tools/build.py
+++ b/dart/tools/build.py
@@ -268,8 +268,9 @@ PhaseScriptExecution "Action \"upload_sdk_py\"" xcodebuild/dart.build/...
# The capability "clr_eol" means clear the line from cursor to end
# of line. See man pages for tput and terminfo.
try:
- clr_eol = subprocess.check_output(['tput', '-T' + term, 'el'],
- stderr=subprocess.STDOUT)
+ with open('/dev/null', 'a') as dev_null:
+ clr_eol = subprocess.check_output(['tput', '-T' + term, 'el'],
+ stderr=dev_null)
if clr_eol:
is_fancy_tty = True
except subprocess.CalledProcessError:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698