From: Georg Brandl Date: Fri, 26 May 2006 11:26:11 +0000 (+0000) Subject: Add "partition" to UserString. X-Git-Tag: v2.5b1~491 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a172c32c05b304c7a346408b2e557cd05f9b8393;p=python Add "partition" to UserString. --- diff --git a/Lib/UserString.py b/Lib/UserString.py index 94eb66d454..b8fd8bf635 100755 --- a/Lib/UserString.py +++ b/Lib/UserString.py @@ -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):