From a172c32c05b304c7a346408b2e557cd05f9b8393 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 26 May 2006 11:26:11 +0000 Subject: [PATCH] Add "partition" to UserString. --- Lib/UserString.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.40.0