From 2e576f5aec1f8f23f07001e2eb3db9276851a4fc Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 24 Apr 2017 09:05:00 +0300 Subject: bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263) --- Lib/shelve.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/shelve.py') diff --git a/Lib/shelve.py b/Lib/shelve.py index 581baf1e6f..4a56c93ea0 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 '' -class Shelf(collections.MutableMapping): +class Shelf(collections.abc.MutableMapping): """Base class for shelf implementations. This is initialized with a dictionary-like object. -- cgit v1.2.1