bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)


The new code also runs faster.
(cherry picked from commit f0daa880a405c8de6743e44fa46006754aa145c9)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
3 files changed