mirror of
https://github.com/python/cpython.git
synced 2025-09-01 22:47:59 +00:00
Replace os.error with OSError in tkinter and IDLE
This commit is contained in:
parent
69d03c4799
commit
786fbd8db7
6 changed files with 8 additions and 8 deletions
|
@ -103,7 +103,7 @@ class FileList:
|
|||
if not os.path.isabs(filename):
|
||||
try:
|
||||
pwd = os.getcwd()
|
||||
except os.error:
|
||||
except OSError:
|
||||
pass
|
||||
else:
|
||||
filename = os.path.join(pwd, filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue