summaryrefslogtreecommitdiff
path: root/Lib/dumbdbm.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-02-04 20:44:31 +0000
committerRaymond Hettinger <python@rcn.com>2008-02-04 20:44:31 +0000
commitb9da9bc0a04b718e8395e2e88c3053ab944579b7 (patch)
tree39e44e2cc664befbe4ede987ad71ea37db3bb7b0 /Lib/dumbdbm.py
parent15ebc88d87d2ff8f520581a9f6a6816d78a7e504 (diff)
downloadcpython-git-b9da9bc0a04b718e8395e2e88c3053ab944579b7.tar.gz
Start replacing UserDict.DictMixin with collections.MutableMapping (the bsddb modules are next).
Diffstat (limited to 'Lib/dumbdbm.py')
-rw-r--r--Lib/dumbdbm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index e44e1f5fd5..8d58f8780a 100644
--- a/Lib/dumbdbm.py
+++ b/Lib/dumbdbm.py
@@ -23,13 +23,13 @@ is read when the database is opened, and some updates rewrite the whole index)
import io as _io
import os as _os
-import UserDict
+import collections
_BLOCKSIZE = 512
error = IOError # For anydbm
-class _Database(UserDict.DictMixin):
+class _Database(collections.MutableMapping):
# The on-disk directory and data files can remain in mutually
# inconsistent states for an arbitrarily long time (see comments