diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-12 18:10:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-12 18:10:51 (GMT) |
commit | 62ab10a05acdc8bb45549e4df6fd6fb5f4623aab (patch) | |
tree | aa9923e821b0171ac71d11f9e8414fc594fcb61c /Doc/library/readline.rst | |
parent | 5d6fbe82078fe67437755bccfa504dbbcf909a74 (diff) | |
download | cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.zip cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.gz cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.bz2 |
Replace mentions of IOError
Diffstat (limited to 'Doc/library/readline.rst')
-rw-r--r-- | Doc/library/readline.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index ab55197..1134619 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -199,7 +199,7 @@ normally be executed automatically during interactive sessions from the user's histfile = os.path.join(os.path.expanduser("~"), ".pyhist") try: readline.read_history_file(histfile) - except IOError: + except FileNotFoundError: pass import atexit atexit.register(readline.write_history_file, histfile) @@ -224,7 +224,7 @@ support history save/restore. :: if hasattr(readline, "read_history_file"): try: readline.read_history_file(histfile) - except IOError: + except FileNotFoundError: pass atexit.register(self.save_history, histfile) |