Kaydet (Commit) 31f6bc01 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

No need to register classes that already inherit from ABCs.

üst cd873fc1
...@@ -85,5 +85,3 @@ class UserList(collections.MutableSequence): ...@@ -85,5 +85,3 @@ class UserList(collections.MutableSequence):
self.data.extend(other.data) self.data.extend(other.data)
else: else:
self.data.extend(other) self.data.extend(other)
collections.MutableSequence.register(UserList)
...@@ -214,8 +214,6 @@ class MutableString(UserString, collections.MutableSequence): ...@@ -214,8 +214,6 @@ class MutableString(UserString, collections.MutableSequence):
def insert(self, index, value): def insert(self, index, value):
self[index:index] = value self[index:index] = value
collections.MutableSequence.register(MutableString)
if __name__ == "__main__": if __name__ == "__main__":
# execute the regression test to stdout, if called as a script: # execute the regression test to stdout, if called as a script:
import os import os
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment