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

Unified Diff: git_cl.py

Issue 19027002: Fix pylint presubmit failure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 5 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: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index 9ea856fa41aea869429693586d08e31f4ef0e05f..bb07ee0815436ffef95ec48850dda43cab848c31 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -90,10 +90,10 @@ def RunGitWithCode(args):
def IsGitVersionAtLeast(min_version):
- PREFIX='git version '
+ prefix = 'git version '
version = RunGit(['--version']).strip()
- return (version.startswith(PREFIX) and
- LooseVersion(version[len(PREFIX):]) >= LooseVersion(min_version))
+ return (version.startswith(prefix) and
+ LooseVersion(version[len(prefix):]) >= LooseVersion(min_version))
def usage(more):
« 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