mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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:
parent
5437ccca14
commit
eea47e0939
3 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue