diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-12-18 15:17:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 15:17:56 (GMT) |
commit | 17d0c0595e101c4ce76b58e55de37e6b5083e6cd (patch) | |
tree | e3e1374312f58fcd88dcd0c22df73f77cdf9d56c /Misc | |
parent | e6b247c8e524dbe5fc03b3492f628d0d5348bc49 (diff) | |
download | cpython-17d0c0595e101c4ce76b58e55de37e6b5083e6cd.zip cpython-17d0c0595e101c4ce76b58e55de37e6b5083e6cd.tar.gz cpython-17d0c0595e101c4ce76b58e55de37e6b5083e6cd.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-12-05-17-42-49.bpo-10496.laV_IE.rst | 3 |
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 0000000..cbfe5eb --- /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. |