mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Start replacing UserDict.DictMixin with collections.MutableMapping (the bsddb modules are next).
This commit is contained in:
parent
15ebc88d87
commit
b9da9bc0a0
4 changed files with 19 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue