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

Unified Diff: trychange.py

Issue 537004: append_const is not supported on python 2.4.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trychange.py
===================================================================
--- trychange.py (revision 35830)
+++ trychange.py (working copy)
@@ -475,10 +475,14 @@
"@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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698