mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +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
|
@ -110,7 +110,7 @@ class GrepDialog(SearchDialogBase):
|
|||
def findfiles(self, dir, base, rec):
|
||||
try:
|
||||
names = os.listdir(dir or os.curdir)
|
||||
except os.error as msg:
|
||||
except OSError as msg:
|
||||
print(msg)
|
||||
return []
|
||||
list = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue