Enforce python 2.6 or later.

TBR=bevc@chromium.org
BUG=
TEST=


Review URL: http://codereview.chromium.org/9178027

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@123276 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 14 years ago
parent 5ac27607ca
commit 82798cbb32

@ -1400,9 +1400,11 @@ def CMDhelp(args):
def main(argv):
if sys.hexversion < 0x02050000:
if sys.hexversion < 0x02060000:
print >> sys.stderr, (
'\nYour python version is unsupported, please upgrade.\n')
'\nYour python version %s is unsupported, please upgrade.\n' %
sys.version.split(' ', 1)[0])
return 2
if not argv:
argv = ['help']
command = Command(argv[0])

@ -49,7 +49,7 @@ Hooks
]
"""
__version__ = "0.6.3"
__version__ = "0.6.4"
import copy
import logging
@ -1504,9 +1504,11 @@ def Parser():
def Main(argv):
"""Doesn't parse the arguments here, just find the right subcommand to
execute."""
if sys.hexversion < 0x02050000:
if sys.hexversion < 0x02060000:
print >> sys.stderr, (
'\nYour python version is unsupported, please upgrade.\n')
'\nYour python version %s is unsupported, please upgrade.\n' %
sys.version.split(' ', 1)[0])
return 2
colorama.init()
try:
# Make stdout auto-flush so buildbot doesn't kill us during lengthy

@ -1449,6 +1449,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()

Loading…
Cancel
Save