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 7ead8ea..b7220a5 100644 --- a/Doc/library/getopt.rst +++ b/Doc/library/getopt.rst @@ -112,7 +112,7 @@ In a script, typical usage is something like this:: opts, args = getopt.getopt(sys.argv[1:], "ho:v", ["help", "output="]) except getopt.GetoptError as err: # print help information and exit: - print str(err) # will print something like "option -a not recognized" + print(err) # will print something like "option -a not recognized" usage() sys.exit(2) output = None |