summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PathBrowser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/PathBrowser.py')
-rw-r--r--Lib/idlelib/PathBrowser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/PathBrowser.py b/Lib/idlelib/PathBrowser.py
index 55bf1aa..ab05c67 100644
--- a/Lib/idlelib/PathBrowser.py
+++ b/Lib/idlelib/PathBrowser.py
@@ -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: