mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -100,12 +100,12 @@ class _Database(collections.MutableMapping):
|
|||
|
||||
try:
|
||||
self._os.unlink(self._bakfile)
|
||||
except self._os.error:
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
try:
|
||||
self._os.rename(self._dirfile, self._bakfile)
|
||||
except self._os.error:
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
f = self._io.open(self._dirfile, 'w', encoding="Latin-1")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue