summaryrefslogtreecommitdiffstats
path: root/Lib/weakref.py
diff options
context:
space:
mode:
authorGéry Ogam <gery.ogam@gmail.com>2022-03-31 14:11:35 (GMT)
committerGitHub <noreply@github.com>2022-03-31 14:11:35 (GMT)
commit5458b7e39eb41b146c650b76e04ac67213138a82 (patch)
treec5279040624a842edf3f64fe16ebff7a6a53b6fa /Lib/weakref.py
parent8be7c2bc5ad5e295f0f855bb31db412eef2c7c92 (diff)
downloadcpython-5458b7e39eb41b146c650b76e04ac67213138a82.zip
cpython-5458b7e39eb41b146c650b76e04ac67213138a82.tar.gz
cpython-5458b7e39eb41b146c650b76e04ac67213138a82.tar.bz2
Remove unnecessary registration of weakref.WeakSet to _collections_abc.Set (GH-32211)
Diffstat (limited to 'Lib/weakref.py')
-rw-r--r--Lib/weakref.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/weakref.py b/Lib/weakref.py
index 42aba65..25b7092 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):