diff options
| author | Raymond Hettinger <python@rcn.com> | 2008-02-11 19:00:13 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2008-02-11 19:00:13 (GMT) |
| commit | 1021cc692d392f4c34791cf22e942dd1b1e0f519 (patch) | |
| tree | 570d3ac2e64a7db4b7864fffccc63bffa5aa6aa3 | |
| parent | 0dd1b63746c12bfb7a8623e8f2f442494f18450d (diff) | |
| download | cpython-1021cc692d392f4c34791cf22e942dd1b1e0f519.zip cpython-1021cc692d392f4c34791cf22e942dd1b1e0f519.tar.gz cpython-1021cc692d392f4c34791cf22e942dd1b1e0f519.tar.bz2 | |
No need to register classes that already inherit from ABCs.
| -rw-r--r-- | Lib/UserList.py | 2 | ||||
| -rwxr-xr-x | Lib/UserString.py | 2 | ||||
| -rw-r--r-- | Lib/collections.py | 2 | ||||
| -rw-r--r-- | Lib/weakref.py | 3 |
4 files changed, 0 insertions, 9 deletions
diff --git a/Lib/UserList.py b/Lib/UserList.py index 348ea76..7617a08 100644 --- a/Lib/UserList.py +++ b/Lib/UserList.py @@ -71,5 +71,3 @@ class UserList(collections.MutableSequence): self.data.extend(other.data) else: self.data.extend(other) - -collections.MutableSequence.register(UserList) diff --git a/Lib/UserString.py b/Lib/UserString.py index c3267ad..27b2b53 100755 --- a/Lib/UserString.py +++ b/Lib/UserString.py @@ -235,8 +235,6 @@ class MutableString(UserString, collections.MutableSequence): def insert(self, index, value): self[index:index] = value -collections.MutableSequence.register(MutableString) - if __name__ == "__main__": # execute the regression test to stdout, if called as a script: import os diff --git a/Lib/collections.py b/Lib/collections.py index d06445b..abde718 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -160,8 +160,6 @@ class UserDict(MutableMapping): d[key] = value return d -MutableMapping.register(UserDict) - ################################################################################ diff --git a/Lib/weakref.py b/Lib/weakref.py index b2546f7..6c479a4 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) |
