]> granicus.if.org Git - python/commitdiff
No need to register classes that already inherit from ABCs.
authorRaymond Hettinger <python@rcn.com>
Mon, 11 Feb 2008 18:51:08 +0000 (18:51 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 11 Feb 2008 18:51:08 +0000 (18:51 +0000)
Lib/UserList.py
Lib/UserString.py

index 17f45c8c666d8f38475b4ccbf8f55e90b137f22c..556a3273a8a8462cc0901634e27788cc26f55f5b 100644 (file)
@@ -85,5 +85,3 @@ class UserList(collections.MutableSequence):
             self.data.extend(other.data)
         else:
             self.data.extend(other)
-
-collections.MutableSequence.register(UserList)
index 71984a71cd494ea2799524e9d7adfdd0797d4f9c..94fcbd276dcb053d4d9ce5e304951c9862fdf899 100755 (executable)
@@ -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