summaryrefslogtreecommitdiffstats
path: root/Lib/UserString.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-26 11:26:11 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-26 11:26:11 (GMT)
commita172c32c05b304c7a346408b2e557cd05f9b8393 (patch)
tree510de859f5e34aa1518047ae8c67f926c2952cf4 /Lib/UserString.py
parent072a24c33a671914d3c42e3514618c05d2016936 (diff)
downloadcpython-a172c32c05b304c7a346408b2e557cd05f9b8393.zip
cpython-a172c32c05b304c7a346408b2e557cd05f9b8393.tar.gz
cpython-a172c32c05b304c7a346408b2e557cd05f9b8393.tar.bz2
Add "partition" to UserString.
Diffstat (limited to 'Lib/UserString.py')
-rwxr-xr-xLib/UserString.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/UserString.py b/Lib/UserString.py
index 94eb66d..b8fd8bf 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):