Commit 51282ec8 authored by maruel@chromium.org's avatar maruel@chromium.org

append_const is not supported on python 2.4.

(which is increasingly becoming a pain to support)

TEST=gcl try --help doesn't throw an error.
BUG=none
Review URL: http://codereview.chromium.org/537004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35832 0039d316-1c4b-4281-b951-d872f2087c98
parent 7538b862
......@@ -475,10 +475,14 @@ def TryChange(argv,
"@branch or @branch1..branch2 to specify the "
"revision/branch to diff against.")
# Mostly chromium-specific
group.add_option("--webkit", action="append_const",
const="third_party/WebKit",
dest="sub_rep",
help="Shorthand for -s third_party/WebKit")
try:
group.add_option("--webkit", action="append_const",
const="third_party/WebKit",
dest="sub_rep",
help="Shorthand for -s third_party/WebKit")
except optparse.OptionError:
# append_const is not supported on 2.4. Too bad.
pass
group.add_option("--no_gclient", action="store_true",
help="Disable automatic search for gclient checkout.")
parser.add_option_group(group)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment