Author: raymond.hettinger Date: Mon Feb 11 20:00:13 2008 New Revision: 60732
Modified: python/branches/py3k/Lib/UserList.py python/branches/py3k/Lib/UserString.py python/branches/py3k/Lib/collections.py python/branches/py3k/Lib/weakref.py Log: No need to register classes that already inherit from ABCs. Modified: python/branches/py3k/Lib/UserList.py ============================================================================== --- python/branches/py3k/Lib/UserList.py (original) +++ python/branches/py3k/Lib/UserList.py Mon Feb 11 20:00:13 2008 @@ -71,5 +71,3 @@ self.data.extend(other.data) else: self.data.extend(other) - -collections.MutableSequence.register(UserList) Modified: python/branches/py3k/Lib/UserString.py ============================================================================== --- python/branches/py3k/Lib/UserString.py (original) +++ python/branches/py3k/Lib/UserString.py Mon Feb 11 20:00:13 2008 @@ -235,8 +235,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 Modified: python/branches/py3k/Lib/collections.py ============================================================================== --- python/branches/py3k/Lib/collections.py (original) +++ python/branches/py3k/Lib/collections.py Mon Feb 11 20:00:13 2008 @@ -160,8 +160,6 @@ d[key] = value return d -MutableMapping.register(UserDict) - ################################################################################ Modified: python/branches/py3k/Lib/weakref.py ============================================================================== --- python/branches/py3k/Lib/weakref.py (original) +++ python/branches/py3k/Lib/weakref.py Mon Feb 11 20:00:13 2008 @@ -194,7 +194,6 @@ L.append(o) return L -collections.MutableMapping.register(WeakValueDictionary) class KeyedRef(ref): """Specialized reference that includes a key corresponding to the value. @@ -350,5 +349,3 @@ d[ref(key, self._remove)] = value if len(kwargs): self.update(kwargs) - -collections.MutableMapping.register(WeakKeyDictionary) _______________________________________________ Python-3000-checkins mailing list Python-3000-checkins@python.org http://mail.python.org/mailman/listinfo/python-3000-checkins