Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: git_cl.py

Issue 9178027: Enforce python 2.6 or later. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index c24fdb6afc47926c51765b472da152e3b0018de4..003b6e43a17a2fb0c6b59d5caa3e2623fd770b8a 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1387,6 +1387,11 @@ def GenUsage(parser, command):
def main(argv):
"""Doesn't parse the arguments here, just find the right subcommand to
execute."""
+ if sys.hexversion < 0x02060000:
+ print >> sys.stderr, (
+ '\nYour python version %s is unsupported, please upgrade.\n' %
+ sys.version.split(' ', 1)[0])
+ return 2
# Reload settings.
global settings
settings = Settings()
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698