mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
This commit is contained in:
parent
9eb5ca0774
commit
2e576f5aec
22 changed files with 90 additions and 85 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue