]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126) (GH-9506)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 23 Sep 2018 07:53:58 +0000 (00:53 -0700)
committerGitHub <noreply@github.com>
Sun, 23 Sep 2018 07:53:58 +0000 (00:53 -0700)
commit0b67995bfa45393585e2e0017c82c706c4a04b04
tree0b8605459f029bd7146c97ac8160af7c606749db
parent94812f717dde8b11a9ad9c0fd5be66ff9bd53f58
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)
(cherry picked from commit c73df53569f86d0c7742bafa55958c53d57a02e4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/distutils/log.py
Lib/distutils/tests/test_log.py