mirror of https://github.com/python/cpython.git
Correct type error in getopt.error handling code.
This commit is contained in:
parent
aacf5ce1ad
commit
1b6d21bb3e
|
@ -52,7 +52,7 @@ def main():
|
|||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "v")
|
||||
except getopt.error, msg:
|
||||
errprint(msg + "\n\n" + __doc__)
|
||||
errprint(str(msg) + "\n\n" + __doc__)
|
||||
return
|
||||
for opt, optarg in opts:
|
||||
if opt == '-v':
|
||||
|
|
Loading…
Reference in New Issue