aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Tools/scripts/checkpyc.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/scripts/checkpyc.py')
-rwxr-xr-xTools/scripts/checkpyc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/checkpyc.py b/Tools/scripts/checkpyc.py
index d4fdce2515f..009f85bb7c5 100755
--- a/Tools/scripts/checkpyc.py
+++ b/Tools/scripts/checkpyc.py
@@ -24,7 +24,7 @@ def main():
for dirname in sys.path:
try:
names = os.listdir(dirname)
- except os.error:
+ except OSError:
print('Cannot list directory', repr(dirname))
continue
if not silent:
@@ -34,7 +34,7 @@ def main():
name = os.path.join(dirname, name)
try:
st = os.stat(name)
- except os.error:
+ except OSError:
print('Cannot stat', repr(name))
continue
if verbose: