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: |