summaryrefslogtreecommitdiff
path: root/Lib/compileall.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 22:02:39 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 22:02:39 +0200
commitad28c7f9dad791567afa0624acfb3ba430851965 (patch)
tree02095e5f567d6be1de31ffd858d21233b51675dd /Lib/compileall.py
parenta19195984922ce89e7695c93b3bb45c3e0e6d732 (diff)
downloadcpython-git-ad28c7f9dad791567afa0624acfb3ba430851965.tar.gz
Issue #16706: get rid of os.error
Diffstat (limited to 'Lib/compileall.py')
-rw-r--r--Lib/compileall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py
index fd22fc3c1b..a47e84fd60 100644
--- a/Lib/compileall.py
+++ b/Lib/compileall.py
@@ -38,7 +38,7 @@ def compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None,
print('Listing {!r}...'.format(dir))
try:
names = os.listdir(dir)
- except os.error:
+ except OSError:
print("Can't list {!r}".format(dir))
names = []
names.sort()