Kaydet (Commit) 1b6d21bb authored tarafından Guido van Rossum's avatar Guido van Rossum

Correct type error in getopt.error handling code.

üst aacf5ce1
...@@ -52,7 +52,7 @@ def main(): ...@@ -52,7 +52,7 @@ def main():
try: try:
opts, args = getopt.getopt(sys.argv[1:], "v") opts, args = getopt.getopt(sys.argv[1:], "v")
except getopt.error, msg: except getopt.error, msg:
errprint(msg + "\n\n" + __doc__) errprint(str(msg) + "\n\n" + __doc__)
return return
for opt, optarg in opts: for opt, optarg in opts:
if opt == '-v': if opt == '-v':
......
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