diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-01-29 16:27:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-29 16:27:49 (GMT) |
commit | e6d342156d2ab20fb88c0a5ec615fa8f602c0769 (patch) | |
tree | d5d14dc05f25c556bbad4c9f9c5d551b7ea95570 /Lib/collections | |
parent | 4f4ef0acbad81f4b05f370e8ff14ddf949773291 (diff) | |
download | cpython-e6d342156d2ab20fb88c0a5ec615fa8f602c0769.zip cpython-e6d342156d2ab20fb88c0a5ec615fa8f602c0769.tar.gz cpython-e6d342156d2ab20fb88c0a5ec615fa8f602c0769.tar.bz2 |
bpo-25988: Deprecate exposing collections.abc in collections GH-5414
Diffstat (limited to 'Lib/collections')
-rw-r--r-- | Lib/collections/__init__.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 21d91fd..8aeee35 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -18,10 +18,14 @@ __all__ = ['deque', 'defaultdict', 'namedtuple', 'UserDict', 'UserList', 'UserString', 'Counter', 'OrderedDict', 'ChainMap'] # For backwards compatibility, continue to make the collections ABCs -# available through the collections module. -from _collections_abc import * +# through Python 3.6 available through the collections module. +# Note, no new collections ABCs were added in Python 3.7 import _collections_abc -__all__ += _collections_abc.__all__ +from _collections_abc import (AsyncGenerator, AsyncIterable, AsyncIterator, + Awaitable, ByteString, Callable, Collection, Container, Coroutine, + Generator, Hashable, ItemsView, Iterable, Iterator, KeysView, Mapping, + MappingView, MutableMapping, MutableSequence, MutableSet, Reversible, + Sequence, Set, Sized, ValuesView) from operator import itemgetter as _itemgetter, eq as _eq from keyword import iskeyword as _iskeyword |