Replace os.error with OSError in tkinter and IDLE

This commit is contained in:
Andrew Svetlov 2012-12-17 19:51:15 +02:00
parent 69d03c4799
commit 786fbd8db7
6 changed files with 8 additions and 8 deletions

View file

@ -45,7 +45,7 @@ class DirBrowserTreeItem(TreeItem):
def GetSubList(self):
try:
names = os.listdir(self.dir or os.curdir)
except os.error:
except OSError:
return []
packages = []
for name in names: