mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Issue #16706: get rid of os.error
This commit is contained in:
parent
a191959849
commit
ad28c7f9da
33 changed files with 4089 additions and 4123 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue