[Python-checkins] r60731 - python/trunk/Lib/UserList.py python/trunk/Lib/UserString.py

raymond.hettinger python-checkins at python.org
Mon Feb 11 19:51:09 CET 2008


Author: raymond.hettinger
Date: Mon Feb 11 19:51:08 2008
New Revision: 60731

Modified:
   python/trunk/Lib/UserList.py
   python/trunk/Lib/UserString.py
Log:
No need to register classes that already inherit from ABCs.

Modified: python/trunk/Lib/UserList.py
==============================================================================
--- python/trunk/Lib/UserList.py	(original)
+++ python/trunk/Lib/UserList.py	Mon Feb 11 19:51:08 2008
@@ -85,5 +85,3 @@
             self.data.extend(other.data)
         else:
             self.data.extend(other)
-
-collections.MutableSequence.register(UserList)

Modified: python/trunk/Lib/UserString.py
==============================================================================
--- python/trunk/Lib/UserString.py	(original)
+++ python/trunk/Lib/UserString.py	Mon Feb 11 19:51:08 2008
@@ -214,8 +214,6 @@
     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


More information about the Python-checkins mailing list