]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 23 Sep 2018 06:12:59 +0000 (09:12 +0300)
committerGitHub <noreply@github.com>
Sun, 23 Sep 2018 06:12:59 +0000 (09:12 +0300)
commit4b860fd777e983f5d2a6bd1288e2b53099c6a803
treeb3da4545b4497195ba20c32ecbf1753bbf38d7d9
parent8fabae3b00b2ccffd9f7bf4736734ae584ac5829
bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126)

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

Also simplify the code.
Lib/distutils/log.py
Lib/distutils/tests/test_log.py