[Python-checkins] bpo-39674: Fix collections ABC deprecation notice (GH-25281)

vstinner webhook-mailer at python.org
Thu Apr 8 19:29:28 EDT 2021


https://github.com/python/cpython/commit/20d56bd41b56023ce9fa3739c0c9aa8be8d48bfa
commit: 20d56bd41b56023ce9fa3739c0c9aa8be8d48bfa
branch: 3.8
author: Markus Gerstel <2102431+Anthchirp at users.noreply.github.com>
committer: vstinner <vstinner at python.org>
date: 2021-04-09T01:29:19+02:00
summary:

bpo-39674: Fix collections ABC deprecation notice (GH-25281)

The deprecation originally slated for 3.9 was deferred to 3.10
(bpo-39674, GH-18545) and the documentation on the 3.8 release was
updated accordingly (GH-18748). However the deprecation notice in
the code was left as is, and still indicates deprecation with 3.9.

files:
M Lib/collections/__init__.py

diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index a78a47c55a8fc..064e3622863f3 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -48,7 +48,7 @@ def __getattr__(name):
         import warnings
         warnings.warn("Using or importing the ABCs from 'collections' instead "
                       "of from 'collections.abc' is deprecated since Python 3.3, "
-                      "and in 3.9 it will stop working",
+                      "and in 3.10 it will stop working",
                       DeprecationWarning, stacklevel=2)
         globals()[name] = obj
         return obj



More information about the Python-checkins mailing list