summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests/pytree_idempotency.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib2to3/tests/pytree_idempotency.py')
-rwxr-xr-xLib/lib2to3/tests/pytree_idempotency.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/tests/pytree_idempotency.py b/Lib/lib2to3/tests/pytree_idempotency.py
index a02bbfe..731c403 100755
--- a/Lib/lib2to3/tests/pytree_idempotency.py
+++ b/Lib/lib2to3/tests/pytree_idempotency.py
@@ -53,7 +53,7 @@ def main():
for dir in sys.path:
try:
names = os.listdir(dir)
- except os.error:
+ except OSError:
continue
print("Scanning", dir, "...", file=sys.stderr)
for name in names: