diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-21 21:47:20 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-21 21:47:20 (GMT) |
commit | a893957c8e0a514bc62f6ea7fe91a0ecf073fe83 (patch) | |
tree | becad00eadce30e2dc7330831c7064f0f9b8d927 | |
parent | 567ca8e732a75682adfdca08daaf2afa59582ad9 (diff) | |
download | cpython-a893957c8e0a514bc62f6ea7fe91a0ecf073fe83.zip cpython-a893957c8e0a514bc62f6ea7fe91a0ecf073fe83.tar.gz cpython-a893957c8e0a514bc62f6ea7fe91a0ecf073fe83.tar.bz2 |
Denis S. Otkidach <den@analyt.chem.msu.ru>:
Let UserString.translate() method work with unicode data.
This closes SourceForge patch #101246.
-rwxr-xr-x | Lib/UserString.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/UserString.py b/Lib/UserString.py index fb83d58..070b3e1 100755 --- a/Lib/UserString.py +++ b/Lib/UserString.py @@ -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): |