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

Unified Diff: trychange.py

Issue 2444001: Certain versions of python for Windows don't support epilog in the constructor. (Closed)
Patch Set: Created 10 years, 7 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
diff --git a/trychange.py b/trychange.py
index ff935e6fd72768230c28ecc53fe5daaaecc077bb..9a28727db65482ee028031666c232e487af992ea 100755
--- a/trychange.py
+++ b/trychange.py
@@ -458,13 +458,13 @@ def TryChange(argv,
swallow_exception: Whether we raise or swallow exceptions.
"""
# Parse argv
+ parser = optparse.OptionParser(usage=USAGE,
+ version=__version__,
+ prog=prog)
epilog = EPILOG % { 'prog': prog }
if extra_epilog:
epilog += extra_epilog
- parser = optparse.OptionParser(usage=USAGE,
- version=__version__,
- prog=prog,
- epilog=epilog)
+ parser.epilog = epilog
# Remove epilog formatting
parser.format_epilog = lambda x: parser.epilog
parser.add_option("-v", "--verbose", action="count", default=0,
« 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