Merge "Allow using repo with python3"

This commit is contained in:
David Pursehouse 2013-11-22 10:25:34 +00:00 committed by Gerrit Code Review
commit 4534120628

3
repo
View File

@ -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.'