summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-11-21 13:42:39 +0530
committerChirayu Desai <cdesai@cyanogenmod.org>2013-11-21 18:44:52 +0530
commit5d6cb80b8fb67f287c2f2401c55b340b3ac2fd93 (patch)
treee14009287b8cf5612beb2076ebfbb747ec42b52f
parent0eb35cbe5096128e4a760aca6842ecdbea5baf1a (diff)
downloadgit-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-xrepo3
1 files changed, 1 insertions, 2 deletions
diff --git a/repo b/repo
index 62e6ea51..277bbc6e 100755
--- a/repo
+++ b/repo
@@ -138,10 +138,9 @@ def _print(*objects, **kwargs):
138# Python version check 138# Python version check
139ver = sys.version_info 139ver = sys.version_info
140if ver[0] == 3: 140if 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)
145if (ver[0], ver[1]) < MIN_PYTHON_VERSION: 144if (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.'