bpo-36953: Delay removal of ABCs from collections. (GH-13409)

Bump the removal to 3.9, indicate collections.abc available since 3.3,
replace version-changed directive to deprecated-removed.


https://bugs.python.org/issue36953
This commit is contained in:
Matthias Bussonnier 2019-05-30 14:45:48 -07:00 committed by Miss Islington (bot)
parent 5437ccca14
commit eea47e0939
3 changed files with 9 additions and 4 deletions

View file

@ -47,8 +47,8 @@ def __getattr__(name):
obj = getattr(_collections_abc, name)
import warnings
warnings.warn("Using or importing the ABCs from 'collections' instead "
"of from 'collections.abc' is deprecated, "
"and in 3.8 it will stop working",
"of from 'collections.abc' is deprecated since Python 3.3,"
"and in 3.9 it will stop working",
DeprecationWarning, stacklevel=2)
globals()[name] = obj
return obj