summaryrefslogtreecommitdiffstats
path: root/Modules/regexpr.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-12-19 02:39:08 (GMT)
committerGuido van Rossum <guido@python.org>2000-12-19 02:39:08 (GMT)
commit5aff7752eb28c6ddaa68738ee77e1947b72e1a58 (patch)
tree1be49fbf54cca165facab28d2e08856926e0bf50 /Modules/regexpr.c
parentcda4f9a8dca961f9047eb6c5cbe647cec507e1a1 (diff)
downloadcpython-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/regexpr.c')
0 files changed, 0 insertions, 0 deletions