Fix pylint warning W0108: Lambda may not be necessary

Remove unnecessary usage of lambda.

Change-Id: I06d41933057d60d15d307ee800cca052a44754c6
This commit is contained in:
David Pursehouse
2012-10-25 12:40:51 +09:00
parent e072a92a9b
commit 7e6dd2dff0
4 changed files with 8 additions and 9 deletions

View File

@ -88,7 +88,7 @@ class _GitCall(object):
ver_str = git.version()
if ver_str.startswith('git version '):
_git_version = tuple(
map(lambda x: int(x),
map(int,
ver_str[len('git version '):].strip().split('-')[0].split('.')[0:3]
))
else:
@ -110,7 +110,7 @@ def git_require(min_version, fail=False):
if min_version <= git_version:
return True
if fail:
need = '.'.join(map(lambda x: str(x), min_version))
need = '.'.join(map(str, min_version))
print >>sys.stderr, 'fatal: git %s or later required' % need
sys.exit(1)
return False