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

Unified Diff: gclient.py

Issue 5110009: Add an alert for python < 2.5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 10 years, 1 month 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 | « gcl.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
diff --git a/gclient.py b/gclient.py
index 6817db16940ed7eddd1c2c31e74208fef32fc764..98a81925aad7f69c511a62e30cc751a5ca0ff3d5 100644
--- a/gclient.py
+++ b/gclient.py
@@ -1193,6 +1193,9 @@ def GenUsage(parser, command):
def Main(argv):
"""Doesn't parse the arguments here, just find the right subcommand to
execute."""
+ if sys.hexversion < 0x02050000:
+ print >> sys.stderr, (
+ '\nYour python version is unsupported, please upgrade.\n')
try:
# Make stdout auto-flush so buildbot doesn't kill us during lengthy
# operations. Python as a strong tendency to buffer sys.stdout.
« no previous file with comments | « gcl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698