From 4cb73483d9bf297497014bc34ee24d4ae6663e36 Mon Sep 17 00:00:00 2001 From: Markus Gerstel Date: Thu, 8 Apr 2021 17:02:52 +0100 Subject: [PATCH] Fix collections ABC deprecation notice The deprecation originally slated for 3.9 was deferred to 3.10 (bpo-39674, GH-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. --- Lib/collections/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index d353ff2b6f127b..5bc036d20a7215 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -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 since Python 3.3," - "and in 3.9 it will stop working", + "of from 'collections.abc' is deprecated since Python 3.3, " + "and in 3.10 it will stop working", DeprecationWarning, stacklevel=2) globals()[name] = obj return obj pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy