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

Unified Diff: build/util/version.py

Issue 326043004: version.py: Pass the right object to Usage in getopt exceptions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: build/util/version.py
diff --git a/build/util/version.py b/build/util/version.py
index b9ab423bd68306bb82c5bbad180f4e5e207218c4..8d446dcd3b653610cf4eb0ade4520347f5247b9e 100755
--- a/build/util/version.py
+++ b/build/util/version.py
@@ -133,8 +133,8 @@ Usage: version.py [-h] [-f FILE] ([[-i] FILE] | -t TEMPLATE) [[-o] FILE]
try:
try:
opts, args = getopt.getopt(argv[1:], short_options, long_options)
- except getopt.error, msg:
- raise Usage(msg)
+ except getopt.error, err:
+ raise Usage(err.msg)
for o, a in opts:
if o in ('-e', '--eval'):
try:
« 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