summaryrefslogtreecommitdiffstats
path: root/git_command.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-25 12:40:51 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2012-11-07 08:39:57 +0900
commit7e6dd2dff012062b8dd812f923339790323b3840 (patch)
tree0ca1a9e444eb7ebfa40d79ade53939da187da791 /git_command.py
parente072a92a9bb9fdf61bbd1df4e8864f8fd52d5a82 (diff)
downloadgit-repo-7e6dd2dff012062b8dd812f923339790323b3840.tar.gz
Fix pylint warning W0108: Lambda may not be necessary
Remove unnecessary usage of lambda. Change-Id: I06d41933057d60d15d307ee800cca052a44754c6
Diffstat (limited to 'git_command.py')
-rw-r--r--git_command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git_command.py b/git_command.py
index 39f795ff..e5e28f3c 100644
--- a/git_command.py
+++ b/git_command.py
@@ -88,7 +88,7 @@ class _GitCall(object):
88 ver_str = git.version() 88 ver_str = git.version()
89 if ver_str.startswith('git version '): 89 if ver_str.startswith('git version '):
90 _git_version = tuple( 90 _git_version = tuple(
91 map(lambda x: int(x), 91 map(int,
92 ver_str[len('git version '):].strip().split('-')[0].split('.')[0:3] 92 ver_str[len('git version '):].strip().split('-')[0].split('.')[0:3]
93 )) 93 ))
94 else: 94 else:
@@ -110,7 +110,7 @@ def git_require(min_version, fail=False):
110 if min_version <= git_version: 110 if min_version <= git_version:
111 return True 111 return True
112 if fail: 112 if fail:
113 need = '.'.join(map(lambda x: str(x), min_version)) 113 need = '.'.join(map(str, min_version))
114 print >>sys.stderr, 'fatal: git %s or later required' % need 114 print >>sys.stderr, 'fatal: git %s or later required' % need
115 sys.exit(1) 115 sys.exit(1)
116 return False 116 return False