]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] 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:38:05 +0000 (14:38 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Oct 2020 21:38:05 +0000 (14:38 -0700)
commitc437fe39cf5318f27f3381a983fbf320f65064bc
treec244f52ac4f04b6f31ac2b601f90bf4bd9216b41
parentf8d96b98a48c97d0da8714e5e18675412774a6ef
[3.9] bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) (GH-22912)

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]