Kaydet (Commit) 36316e37 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

No need to register subclass of ABCs.

üst 5111c522
...@@ -130,8 +130,6 @@ class UserString(collections.Sequence): ...@@ -130,8 +130,6 @@ class UserString(collections.Sequence):
def upper(self): return self.__class__(self.data.upper()) def upper(self): return self.__class__(self.data.upper())
def zfill(self, width): return self.__class__(self.data.zfill(width)) def zfill(self, width): return self.__class__(self.data.zfill(width))
collections.Sequence.register(UserString)
class MutableString(UserString, collections.MutableSequence): class MutableString(UserString, collections.MutableSequence):
"""mutable string objects """mutable string objects
......
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