Add "partition" to UserString.

This commit is contained in:
Georg Brandl 2006-05-26 11:26:11 +00:00
parent 072a24c33a
commit a172c32c05

View file

@ -102,6 +102,7 @@ class UserString:
return self.__class__(self.data.ljust(width, *args))
def lower(self): return self.__class__(self.data.lower())
def lstrip(self, chars=None): return self.__class__(self.data.lstrip(chars))
def partition(self, sep): return self.data.partition(sep)
def replace(self, old, new, maxsplit=-1):
return self.__class__(self.data.replace(old, new, maxsplit))
def rfind(self, sub, start=0, end=sys.maxint):