diff options
author | Raymond Hettinger <python@rcn.com> | 2008-02-04 20:44:31 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-02-04 20:44:31 (GMT) |
commit | b9da9bc0a04b718e8395e2e88c3053ab944579b7 (patch) | |
tree | 39e44e2cc664befbe4ede987ad71ea37db3bb7b0 /Lib/bsddb/dbshelve.py | |
parent | 15ebc88d87d2ff8f520581a9f6a6816d78a7e504 (diff) | |
download | cpython-b9da9bc0a04b718e8395e2e88c3053ab944579b7.zip cpython-b9da9bc0a04b718e8395e2e88c3053ab944579b7.tar.gz cpython-b9da9bc0a04b718e8395e2e88c3053ab944579b7.tar.bz2 |
Start replacing UserDict.DictMixin with collections.MutableMapping (the bsddb modules are next).
Diffstat (limited to 'Lib/bsddb/dbshelve.py')
-rw-r--r-- | Lib/bsddb/dbshelve.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/dbshelve.py b/Lib/bsddb/dbshelve.py index 8264f2d..a2d7bb7 100644 --- a/Lib/bsddb/dbshelve.py +++ b/Lib/bsddb/dbshelve.py @@ -38,12 +38,12 @@ if sys.version_info[:3] >= (2, 3, 0): HIGHEST_PROTOCOL = pickle.HIGHEST_PROTOCOL def _dumps(object, protocol): return pickle.dumps(object, protocol=protocol) - from UserDict import DictMixin + from collections import MutableMapping else: HIGHEST_PROTOCOL = None def _dumps(object, protocol): return pickle.dumps(object, bin=protocol) - class DictMixin: pass + class MutableMapping: pass from . import db |