]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unnecessary registration of weakref.WeakSet to _collections_abc.Set (GH-32211)
authorGéry Ogam <gery.ogam@gmail.com>
Thu, 31 Mar 2022 14:11:35 +0000 (16:11 +0200)
committerGitHub <noreply@github.com>
Thu, 31 Mar 2022 14:11:35 +0000 (09:11 -0500)
Lib/weakref.py

index 42aba654de54989fd415bd00818adaf4e4eb6199..25b70927e29c31d5fbe48beab554270c866c5829 100644 (file)
@@ -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):