diff options
Diffstat (limited to 'Doc/library/getopt.rst')
-rw-r--r-- | Doc/library/getopt.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/getopt.rst b/Doc/library/getopt.rst index b3ba614..b454814 100644 --- a/Doc/library/getopt.rst +++ b/Doc/library/getopt.rst @@ -126,7 +126,7 @@ In a script, typical usage is something like this:: def main(): try: opts, args = getopt.getopt(sys.argv[1:], "ho:v", ["help", "output="]) - except getopt.GetoptError, err: + except getopt.GetoptError as err: # print help information and exit: print str(err) # will print something like "option -a not recognized" usage() |