yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #86647
[Bug 1936667] Re: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3
The following command would detect what we should replace...
egrep -r -e
'collections\.(Awaitable|Coroutine|AsyncIterable|AsyncIterator|AsyncGenerator|Hashable|Iterable|Iterator|Generator|Reversible|Sized|Container|Callable|Collection|Set|MutableSet|Mapping|MutableMapping|MappingView|KeysView|ItemsView|ValuesView|Sequence|MutableSequence|ByteString)'
--exclude-dir .tox --exclude-dir doc .
** Also affects: cinder
Importance: Undecided
Status: New
** No longer affects: cinder
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1936667
Title:
Using or importing the ABCs from 'collections' instead of from
'collections.abc' is deprecated since Python 3.3
Status in OpenStack Identity (keystone):
In Progress
Status in OpenStack Shared File Systems Service (Manila):
In Progress
Status in Mistral:
In Progress
Status in neutron:
In Progress
Status in taskflow:
In Progress
Status in tempest:
In Progress
Status in zaqar:
In Progress
Bug description:
Using or importing the ABCs from 'collections' instead of from
'collections.abc' is deprecated since Python 3.3.
For example:
>>> import collections
>>> collections.Iterable
<stdin>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
<class 'collections.abc.Iterable'>
>>> from collections import abc
>>> abc.Iterable
<class 'collections.abc.Iterable'>
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1936667/+subscriptions
References