mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -24,7 +24,7 @@ is read when the database is opened, and some updates rewrite the whole index)
|
|||
import ast as _ast
|
||||
import io as _io
|
||||
import os as _os
|
||||
import collections
|
||||
import collections.abc
|
||||
|
||||
__all__ = ["error", "open"]
|
||||
|
||||
|
@ -32,7 +32,7 @@ _BLOCKSIZE = 512
|
|||
|
||||
error = OSError
|
||||
|
||||
class _Database(collections.MutableMapping):
|
||||
class _Database(collections.abc.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