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

Unified Diff: py/utils/shell_utils.py

Issue 521473004: Print the command line, not ['Print', 'the', 'command', 'line']. (Closed) Base URL: https://skia.googlesource.com/common.git@master
Patch Set: done Created 6 years, 4 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: py/utils/shell_utils.py
diff --git a/py/utils/shell_utils.py b/py/utils/shell_utils.py
index 37d124b2f025b203f95281bbd5fb977dd07f2f3c..4068b813ec0b2d49f3e1ce9fc890d2d94595862f 100644
--- a/py/utils/shell_utils.py
+++ b/py/utils/shell_utils.py
@@ -53,7 +53,7 @@ def run_async(cmd, echo=None, shell=False):
if echo is None:
echo = VERBOSE
if echo:
- print cmd
+ print ' '.join(cmd) if isinstance(cmd, list) else cmd
if 'nt' in os.name:
# Windows has a bad habit of opening a dialog when a console program
# crashes, rather than just letting it crash. Therefore, when a program
« 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