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.
Showing
Please register or sign in to comment