Skip to content

Commit 4cb7348

Browse files
committed
Fix collections ABC deprecation notice
The deprecation originally slated for 3.9 was deferred to 3.10 (bpo-39674, pythonGH-18545). However the deprecation notice in the release was left as is, and still indicates deprecation with 3.9. Also add a missing space in the message.
1 parent 2f01c56 commit 4cb7348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/collections/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def __getattr__(name):
4747
obj = getattr(_collections_abc, name)
4848
import warnings
4949
warnings.warn("Using or importing the ABCs from 'collections' instead "
50-
"of from 'collections.abc' is deprecated since Python 3.3,"
51-
"and in 3.9 it will stop working",
50+
"of from 'collections.abc' is deprecated since Python 3.3, "
51+
"and in 3.10 it will stop working",
5252
DeprecationWarning, stacklevel=2)
5353
globals()[name] = obj
5454
return obj

0 commit comments

Comments
 (0)