summaryrefslogtreecommitdiff
path: root/Lib/dbm
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 22:02:39 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 22:02:39 +0200
commitad28c7f9dad791567afa0624acfb3ba430851965 (patch)
tree02095e5f567d6be1de31ffd858d21233b51675dd /Lib/dbm
parenta19195984922ce89e7695c93b3bb45c3e0e6d732 (diff)
downloadcpython-git-ad28c7f9dad791567afa0624acfb3ba430851965.tar.gz
Issue #16706: get rid of os.error
Diffstat (limited to 'Lib/dbm')
-rw-r--r--Lib/dbm/dumb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dbm/dumb.py b/Lib/dbm/dumb.py
index cfb912371c..0bb3a898e4 100644
--- a/Lib/dbm/dumb.py
+++ b/Lib/dbm/dumb.py
@@ -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")