Start replacing UserDict.DictMixin with collections.MutableMapping (the bsddb modules are next).

This commit is contained in:
Raymond Hettinger 2008-02-04 20:44:31 +00:00
parent 15ebc88d87
commit b9da9bc0a0
4 changed files with 19 additions and 7 deletions

View file

@ -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