summaryrefslogtreecommitdiff
path: root/Lib/idlelib/PathBrowser.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 19:51:15 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 19:51:15 +0200
commit786fbd8db707c7cb302a1adf2b57a0b3f8ba078c (patch)
treee57dc024621da6cee184acd32427a51acaefdc0d /Lib/idlelib/PathBrowser.py
parent69d03c4799ade6202e44f4a39331ae26524c932b (diff)
downloadcpython-git-786fbd8db707c7cb302a1adf2b57a0b3f8ba078c.tar.gz
Replace os.error with OSError in tkinter and IDLE
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 55bf1aa87c..ab05c67d75 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: