summaryrefslogtreecommitdiffstats
path: root/git_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_command.py')
-rw-r--r--git_command.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/git_command.py b/git_command.py
index e5e28f3c..d347dd61 100644
--- a/git_command.py
+++ b/git_command.py
@@ -13,6 +13,7 @@
13# See the License for the specific language governing permissions and 13# See the License for the specific language governing permissions and
14# limitations under the License. 14# limitations under the License.
15 15
16from __future__ import print_function
16import os 17import os
17import sys 18import sys
18import subprocess 19import subprocess
@@ -92,7 +93,7 @@ class _GitCall(object):
92 ver_str[len('git version '):].strip().split('-')[0].split('.')[0:3] 93 ver_str[len('git version '):].strip().split('-')[0].split('.')[0:3]
93 )) 94 ))
94 else: 95 else:
95 print >>sys.stderr, 'fatal: "%s" unsupported' % ver_str 96 print('fatal: "%s" unsupported' % ver_str, file=sys.stderr)
96 sys.exit(1) 97 sys.exit(1)
97 return _git_version 98 return _git_version
98 99
@@ -111,7 +112,7 @@ def git_require(min_version, fail=False):
111 return True 112 return True
112 if fail: 113 if fail:
113 need = '.'.join(map(str, min_version)) 114 need = '.'.join(map(str, min_version))
114 print >>sys.stderr, 'fatal: git %s or later required' % need 115 print('fatal: git %s or later required' % need, file=sys.stderr)
115 sys.exit(1) 116 sys.exit(1)
116 return False 117 return False
117 118