diff options
Diffstat (limited to 'git_command.py')
-rw-r--r-- | git_command.py | 4 |
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 |