#18151, part 1: Backport idlelilb portion of Andrew Svetlov's 3.4 patch

changing IOError to OSError (#16715).
This commit is contained in:
Terry Jan Reedy 2013-06-08 00:22:45 -04:00
parent 50793b4438
commit ba6c0d3b08
8 changed files with 18 additions and 22 deletions

View file

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