bpo-38870: correctly escape unprintable characters on ast.unparse (GH-20166)
Unprintable characters such as `\x00` weren't correctly roundtripped due to not using default string repr when generating docstrings. This patch correctly encodes all unprintable characters (except `\n` and `\t`, which are commonly used for formatting, and found unescaped). Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
C
CyberSaxosTiGER committed
d71a6492dbd5434dfa6a0ad95e3ad98aa690887a
Parent: dc31800
Committed by GitHub <noreply@github.com>
on 5/18/2020, 6:41:35 PM