From: Raymond Hettinger Date: Mon, 11 Feb 2008 18:51:08 +0000 (+0000) Subject: No need to register classes that already inherit from ABCs. X-Git-Tag: v2.6a1~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31f6bc018bacbb682b3a55d85667ca8c767a482b;p=python No need to register classes that already inherit from ABCs. --- 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