summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-12-18 17:34:51 +0100
committerGitHub <noreply@github.com>2018-12-18 17:34:51 +0100
commitea6b322829c62951362f267d7afdd262aa2b3e2c (patch)
tree2e29bb8cad9bc5eeb3e1456947a8ba253c45a5b9 /Misc
parent34b7c438b8dc0a1e7e23c9b2d7ce7f8a7c31b4f4 (diff)
downloadcpython-git-ea6b322829c62951362f267d7afdd262aa2b3e2c.tar.gz
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) (GH-11213)
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)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-12-05-17-42-49.bpo-10496.laV_IE.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-12-05-17-42-49.bpo-10496.laV_IE.rst b/Misc/NEWS.d/next/Library/2018-12-05-17-42-49.bpo-10496.laV_IE.rst
new file mode 100644
index 0000000000..cbfe5eb116
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-12-05-17-42-49.bpo-10496.laV_IE.rst
@@ -0,0 +1,3 @@
+:func:`~distutils.utils.check_environ` of :mod:`distutils.utils` now catchs
+:exc:`KeyError` on calling :func:`pwd.getpwuid`: don't create the ``HOME``
+environment variable in this case.