]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on Windows ...
authorChristoph Reiter <reiter.christoph@gmail.com>
Tue, 28 Jan 2020 09:41:50 +0000 (10:41 +0100)
committerSteve Dower <steve.dower@python.org>
Tue, 28 Jan 2020 09:41:50 +0000 (20:41 +1100)
commitc45a2aa9e255b5c7c211faa79f6b23895b64ab27
tree05b12f49c1133fc3713d23eb51eb5ed770b9424f
parent61f4db8c56ca4b7e60050d96ecc255cfb03d92a0
bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on Windows (GH-17961)

In bpo-36264 os.path.expanduser was changed to ignore HOME on Windows.

Path.expanduser/home still honored HOME despite being documented as behaving the same
as os.path.expanduser. This makes them also ignore HOME so that both implementations
behave the same way again.
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Windows/2020-01-11-22-53-55.bpo-38883.X7FRaN.rst [new file with mode: 0644]