From 294c783eef2816761f13135e825a157a9083b26d Mon Sep 17 00:00:00 2001 From: "mmoss@chromium.org" Date: Wed, 17 Jun 2015 16:16:32 +0000 Subject: [PATCH] Fix dry_run run() return type to match check_output(). BUG=501173 R=dpranke@chromium.org, scottmg@chromium.org Review URL: https://codereview.chromium.org/1183703003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@295725 0039d316-1c4b-4281-b951-d872f2087c98 --- fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.py b/fetch.py index 067d4c61ab..35e05d31f5 100755 --- a/fetch.py +++ b/fetch.py @@ -62,7 +62,7 @@ class Checkout(object): def run(self, cmd, **kwargs): print 'Running: %s' % (' '.join(pipes.quote(x) for x in cmd)) if self.options.dry_run: - return 0 + return '' return subprocess.check_output(cmd, **kwargs)