summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-06-08 04:22:45 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-06-08 04:22:45 (GMT)
commitba6c0d3b08768b1a6b9bebba5eeead840fdc9356 (patch)
tree43af5a771d5a7db76050f041c804d85fe93e08cf /Lib/idlelib/EditorWindow.py
parent50793b44382e8d2bdd3a89a0c1ecd8eb97093e22 (diff)
downloadcpython-ba6c0d3b08768b1a6b9bebba5eeead840fdc9356.zip
cpython-ba6c0d3b08768b1a6b9bebba5eeead840fdc9356.tar.gz
cpython-ba6c0d3b08768b1a6b9bebba5eeead840fdc9356.tar.bz2
#18151, part 1: Backport idlelilb portion of Andrew Svetlov's 3.4 patch
changing IOError to OSError (#16715).
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 27eb86f..fd2f11d 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -901,7 +901,7 @@ class EditorWindow(object):
with open(self.recent_files_path, 'w',
encoding='utf_8', errors='replace') as rf_file:
rf_file.writelines(rf_list)
- except IOError as err:
+ except OSError as err:
if not getattr(self.root, "recentfilelist_error_displayed", False):
self.root.recentfilelist_error_displayed = True
tkMessageBox.showerror(title='IDLE Error',