From: Géry Ogam Date: Thu, 31 Mar 2022 14:11:35 +0000 (+0200) Subject: Remove unnecessary registration of weakref.WeakSet to _collections_abc.Set (GH-32211) X-Git-Tag: v3.11.0a7~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5458b7e39eb41b146c650b76e04ac67213138a82;p=thirdparty%2FPython%2Fcpython.git Remove unnecessary registration of weakref.WeakSet to _collections_abc.Set (GH-32211) --- diff --git a/Lib/weakref.py b/Lib/weakref.py index 42aba654de54..25b70927e29c 100644 --- a/Lib/weakref.py +++ b/Lib/weakref.py @@ -33,7 +33,6 @@ __all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs", "WeakSet", "WeakMethod", "finalize"] -_collections_abc.Set.register(WeakSet) _collections_abc.MutableSet.register(WeakSet) class WeakMethod(ref):