summaryrefslogtreecommitdiff
path: root/Lib/weakref.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-02-11 19:00:13 +0000
committerRaymond Hettinger <python@rcn.com>2008-02-11 19:00:13 +0000
commit1021cc692d392f4c34791cf22e942dd1b1e0f519 (patch)
tree570d3ac2e64a7db4b7864fffccc63bffa5aa6aa3 /Lib/weakref.py
parent0dd1b63746c12bfb7a8623e8f2f442494f18450d (diff)
downloadcpython-git-1021cc692d392f4c34791cf22e942dd1b1e0f519.tar.gz
No need to register classes that already inherit from ABCs.
Diffstat (limited to 'Lib/weakref.py')
-rw-r--r--Lib/weakref.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/weakref.py b/Lib/weakref.py
index b2546f7223..6c479a41ac 100644
--- a/Lib/weakref.py
+++ b/Lib/weakref.py
@@ -194,7 +194,6 @@ class WeakValueDictionary(collections.MutableMapping):
L.append(o)
return L
-collections.MutableMapping.register(WeakValueDictionary)
class KeyedRef(ref):
"""Specialized reference that includes a key corresponding to the value.
@@ -350,5 +349,3 @@ class WeakKeyDictionary(collections.MutableMapping):
d[ref(key, self._remove)] = value
if len(kwargs):
self.update(kwargs)
-
-collections.MutableMapping.register(WeakKeyDictionary)