diff options
author | Guido van Rossum <guido@python.org> | 2000-12-19 02:39:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-12-19 02:39:08 (GMT) |
commit | 5aff7752eb28c6ddaa68738ee77e1947b72e1a58 (patch) | |
tree | 1be49fbf54cca165facab28d2e08856926e0bf50 /Modules/cmathmodule.c | |
parent | cda4f9a8dca961f9047eb6c5cbe647cec507e1a1 (diff) | |
download | cpython-5aff7752eb28c6ddaa68738ee77e1947b72e1a58.zip cpython-5aff7752eb28c6ddaa68738ee77e1947b72e1a58.tar.gz cpython-5aff7752eb28c6ddaa68738ee77e1947b72e1a58.tar.bz2 |
Make string.translate(s, table) work for Unicode s. Two things are
required to work around restrictions on the arguments of
u.translate():
1) don't pass the deletions argument if it's empty;
2) convert table to Unicode if s is Unicode.
This fixes SF bug #124060.
Diffstat (limited to 'Modules/cmathmodule.c')
0 files changed, 0 insertions, 0 deletions