summaryrefslogtreecommitdiffstats
path: root/Lib/test/sortperf.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/sortperf.py')
-rw-r--r--Lib/test/sortperf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/sortperf.py b/Lib/test/sortperf.py
index af7c0b4..a370ed9 100644
--- a/Lib/test/sortperf.py
+++ b/Lib/test/sortperf.py
@@ -35,7 +35,7 @@ def randfloats(n):
if fp:
try:
os.unlink(fn)
- except os.error:
+ except OSError:
pass
except IOError as msg:
print("can't write", fn, ":", msg)