mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +00:00
Correct type error in getopt.error handling code.
This commit is contained in:
parent
aacf5ce1ad
commit
1b6d21bb3e
1 changed files with 1 additions and 1 deletions
|
@ -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':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue