summaryrefslogtreecommitdiffstats
path: root/Lib/shelve.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-24 06:05:00 (GMT)
committerGitHub <noreply@github.com>2017-04-24 06:05:00 (GMT)
commit2e576f5aec1f8f23f07001e2eb3db9276851a4fc (patch)
tree0c42af143f2ab71bce5865aa72056330fcc510db /Lib/shelve.py
parent9eb5ca0774f94215be48442100c829db2484e146 (diff)
downloadcpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.zip
cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.gz
cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.bz2
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
Diffstat (limited to 'Lib/shelve.py')
-rw-r--r--Lib/shelve.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py
index 581baf1..4a56c93 100644
--- a/Lib/shelve.py
+++ b/Lib/shelve.py
@@ -59,11 +59,11 @@ the persistent dictionary on disk, if feasible).
from pickle import Pickler, Unpickler
from io import BytesIO
-import collections
+import collections.abc
__all__ = ["Shelf", "BsdDbShelf", "DbfilenameShelf", "open"]
-class _ClosedDict(collections.MutableMapping):
+class _ClosedDict(collections.abc.MutableMapping):
'Marker for a closed dict. Access attempts raise a ValueError.'
def closed(self, *args):
@@ -74,7 +74,7 @@ class _ClosedDict(collections.MutableMapping):
return '<Closed Dictionary>'
-class Shelf(collections.MutableMapping):
+class Shelf(collections.abc.MutableMapping):
"""Base class for shelf implementations.
This is initialized with a dictionary-like object.