Skip to content

Commit d4b70dc

Browse files
author
raymond.hettinger
committed
No need to register classes that already inherit from ABCs.
git-svn-id: http://svn.python.org/projects/python/trunk@60731 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 4b6fca8 commit d4b70dc

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

Lib/UserList.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,3 @@ def extend(self, other):
8585
self.data.extend(other.data)
8686
else:
8787
self.data.extend(other)
88-
89-
collections.MutableSequence.register(UserList)

Lib/UserString.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ def __imul__(self, n):
214214
def insert(self, index, value):
215215
self[index:index] = value
216216

217-
collections.MutableSequence.register(MutableString)
218-
219217
if __name__ == "__main__":
220218
# execute the regression test to stdout, if called as a script:
221219
import os

0 commit comments

Comments
 (0)