Denis S. Otkidach <den@analyt.chem.msu.ru>:

Let UserString.translate() method work with unicode data.

This closes SourceForge patch #101246.
This commit is contained in:
Fred Drake 2000-08-21 21:47:20 +00:00
parent 567ca8e732
commit a893957c8e
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ class UserString:
def strip(self): return self.__class__(self.data.strip())
def swapcase(self): return self.__class__(self.data.swapcase())
def title(self): return self.__class__(self.data.title())
def translate(self, table, deletechars=""):
return self.__class__(self.data.translate(table, deletechars))
def translate(self, *args):
return self.__class__(self.data.translate(*args))
def upper(self): return self.__class__(self.data.upper())
class MutableString(UserString):