diff options
author | Raymond Hettinger <python@rcn.com> | 2008-02-11 18:51:08 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-02-11 18:51:08 +0000 |
commit | 31f6bc018bacbb682b3a55d85667ca8c767a482b (patch) | |
tree | 755bd747a0caa78421f0c7b25cce91a3140a2daf | |
parent | cd873fc1428b52620e26e44e19ce00a7ed79555c (diff) | |
download | cpython-git-31f6bc018bacbb682b3a55d85667ca8c767a482b.tar.gz |
No need to register classes that already inherit from ABCs.
-rw-r--r-- | Lib/UserList.py | 2 | ||||
-rwxr-xr-x | Lib/UserString.py | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/Lib/UserList.py b/Lib/UserList.py index 17f45c8c66..556a3273a8 100644 --- a/Lib/UserList.py +++ b/Lib/UserList.py @@ -85,5 +85,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 71984a71cd..94fcbd276d 100755 --- a/Lib/UserString.py +++ b/Lib/UserString.py @@ -214,8 +214,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 |