mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Merge "Allow using repo with python3"
This commit is contained in:
commit
4534120628
3
repo
3
repo
@ -138,10 +138,9 @@ def _print(*objects, **kwargs):
|
|||||||
# Python version check
|
# Python version check
|
||||||
ver = sys.version_info
|
ver = sys.version_info
|
||||||
if ver[0] == 3:
|
if ver[0] == 3:
|
||||||
_print('error: Python 3 support is not fully implemented in repo yet.\n'
|
_print('warning: Python 3 support is currently experimental. YMMV.\n'
|
||||||
'Please use Python 2.6 - 2.7 instead.',
|
'Please use Python 2.6 - 2.7 instead.',
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
sys.exit(1)
|
|
||||||
if (ver[0], ver[1]) < MIN_PYTHON_VERSION:
|
if (ver[0], ver[1]) < MIN_PYTHON_VERSION:
|
||||||
_print('error: Python version %s unsupported.\n'
|
_print('error: Python version %s unsupported.\n'
|
||||||
'Please use Python 2.6 - 2.7 instead.'
|
'Please use Python 2.6 - 2.7 instead.'
|
||||||
|
Loading…
Reference in New Issue
Block a user