Correct type error in getopt.error handling code.

This commit is contained in:
Guido van Rossum 2000-02-29 13:08:44 +00:00
parent aacf5ce1ad
commit 1b6d21bb3e
1 changed files with 1 additions and 1 deletions

View File

@ -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':