Merge "Allow using repo with python3"
This commit is contained in:
commit
4534120628
1 changed files with 1 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue