bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)

This commit is contained in:
Serhiy Storchaka 2017-04-24 09:05:00 +03:00 committed by GitHub
parent 9eb5ca0774
commit 2e576f5aec
22 changed files with 90 additions and 85 deletions

View file

@ -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