]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 18 Dec 2018 15:34:54 +0000 (07:34 -0800)
committerGitHub <noreply@github.com>
Tue, 18 Dec 2018 15:34:54 +0000 (07:34 -0800)
commit6e96fb44f12c2e9d7ab0d14a21f2aa85ecaa2f83
tree05f715ffc0a5779258198b67d7a05c38dccd0103
parent05dfa0cc96f6b72b1e72f57b1b5f4b37764a382d
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)

check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.
(cherry picked from commit 17d0c0595e101c4ce76b58e55de37e6b5083e6cd)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/distutils/tests/test_util.py
Lib/distutils/util.py
Misc/NEWS.d/next/Library/2018-12-05-17-42-49.bpo-10496.laV_IE.rst [new file with mode: 0644]