From 69bc538f9741f27fe8d5a1b2a803057fc4f08a95 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Fri, 9 Sep 2011 19:19:55 +0000 Subject: [PATCH] subprocess2.check_output() doesn't allow stdout, like python2.7's version. Don't bother, but redirect stderr. TBR=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/7865005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@100464 0039d316-1c4b-4281-b951-d872f2087c98 --- trychange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trychange.py b/trychange.py index a40b6e12c..d76af94cd 100755 --- a/trychange.py +++ b/trychange.py @@ -442,7 +442,7 @@ def GuessVCS(options, path): try: subprocess2.check_output( ['git', 'rev-parse', '--is-inside-work-tree'], cwd=real_path, - stdout=subprocess2.VOID) + stderr=subprocess2.VOID) return GIT(options, path) except subprocess2.CalledProcessError, e: if e.returncode != errno.ENOENT and e.returncode != 128: