]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on Windows ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 28 Jan 2020 09:59:43 +0000 (01:59 -0800)
committerGitHub <noreply@github.com>
Tue, 28 Jan 2020 09:59:43 +0000 (01:59 -0800)
commit595b516965ee88b817dc1b3d7713e1f3f263634d
treefd9f482a0fd5a39057bec69349325c089520b43c
parent41f4dc3bcf30cb8362a062a26818311c704ea89f
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.
(cherry picked from commit c45a2aa9e255b5c7c211faa79f6b23895b64ab27)

Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
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]