]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-40592: shutil.which will not return None anymore if ; is the last char...
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 23 Oct 2020 21:37:58 +0000 (14:37 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Oct 2020 21:37:58 +0000 (14:37 -0700)
commit8b4842b7a830299870067bba59f53529b13647a2
treef4a9332e7319aa6a4ca866076acbb1a8d47fa385
parentcd894b1094ac472ceb98fe15a28ebeb8301fc079
[3.8] bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) (GH-22913)

shutil.which will not return None anymore for empty str in PATHEXT
Empty PATHEXT will now be defaulted to _WIN_DEFAULT_PATHEXT
(cherry picked from commit da6f098188c9825f10ae60db8987056b3a54c2e8)

Co-authored-by: Christopher Marchfelder <marchfelder@googlemail.com>
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Library/2020-05-14-16-01-34.bpo-40592.Cmk855.rst [new file with mode: 0644]