]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126) (GH-9506)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 23 Sep 2018 07:31:53 +0000 (10:31 +0300)
committerGitHub <noreply@github.com>
Sun, 23 Sep 2018 07:31:53 +0000 (10:31 +0300)
commitc73df53569f86d0c7742bafa55958c53d57a02e4
tree5707f75e8f2407853e0419c895b374e9af8ff5ad
parent2756ef31656399a120589b7aa19c32e2b91a4758
bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126) (GH-9506)

Use "backslashreplace" instead of "unicode-escape".  It is not
implementation depended and escapes only non-encodable characters.

Also simplify the code.
(cherry picked from commit 4b860fd)
Lib/distutils/log.py
Lib/distutils/tests/test_log.py