diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-11-21 13:42:39 +0530 |
---|---|---|
committer | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-11-21 18:44:52 +0530 |
commit | 5d6cb80b8fb67f287c2f2401c55b340b3ac2fd93 (patch) | |
tree | e14009287b8cf5612beb2076ebfbb747ec42b52f | |
parent | 0eb35cbe5096128e4a760aca6842ecdbea5baf1a (diff) | |
download | git-repo-5d6cb80b8fb67f287c2f2401c55b340b3ac2fd93.tar.gz |
Allow using repo with python3
* Switching from python2 to python3 in the same workspace isn't
currently supported, due to a change in the pickle version (which
isn't supported by python2)
* Basic functionality does work with python3, however not everything
is expected to
Change-Id: I4256b5a9861562d0260b503f972c1569190182aa
-rwxr-xr-x | repo | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -138,10 +138,9 @@ def _print(*objects, **kwargs): | |||
138 | # Python version check | 138 | # Python version check |
139 | ver = sys.version_info | 139 | ver = sys.version_info |
140 | if ver[0] == 3: | 140 | if ver[0] == 3: |
141 | _print('error: Python 3 support is not fully implemented in repo yet.\n' | 141 | _print('warning: Python 3 support is currently experimental. YMMV.\n' |
142 | 'Please use Python 2.6 - 2.7 instead.', | 142 | 'Please use Python 2.6 - 2.7 instead.', |
143 | file=sys.stderr) | 143 | file=sys.stderr) |
144 | sys.exit(1) | ||
145 | if (ver[0], ver[1]) < MIN_PYTHON_VERSION: | 144 | if (ver[0], ver[1]) < MIN_PYTHON_VERSION: |
146 | _print('error: Python version %s unsupported.\n' | 145 | _print('error: Python version %s unsupported.\n' |
147 | 'Please use Python 2.6 - 2.7 instead.' | 146 | 'Please use Python 2.6 - 2.7 instead.' |