mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Replace IOError with OSError (#16715)
This commit is contained in:
parent
16bdd4120d
commit
f7a17b48d7
121 changed files with 381 additions and 386 deletions
|
@ -886,7 +886,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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue