summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/FileList.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 17:51:15 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 17:51:15 (GMT)
commit786fbd8db707c7cb302a1adf2b57a0b3f8ba078c (patch)
treee57dc024621da6cee184acd32427a51acaefdc0d /Lib/idlelib/FileList.py
parent69d03c4799ade6202e44f4a39331ae26524c932b (diff)
downloadcpython-786fbd8db707c7cb302a1adf2b57a0b3f8ba078c.zip
cpython-786fbd8db707c7cb302a1adf2b57a0b3f8ba078c.tar.gz
cpython-786fbd8db707c7cb302a1adf2b57a0b3f8ba078c.tar.bz2
Replace os.error with OSError in tkinter and IDLE
Diffstat (limited to 'Lib/idlelib/FileList.py')
-rw-r--r--Lib/idlelib/FileList.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/FileList.py b/Lib/idlelib/FileList.py
index 37a337e..a9989a8 100644
--- a/Lib/idlelib/FileList.py
+++ b/Lib/idlelib/FileList.py
@@ -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)