diff options
author | Barney Gale <barney.gale@gmail.com> | 2021-04-07 22:50:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 22:50:13 (GMT) |
commit | 3f3d82b84823eb28abeedf317bbe107bbe7f6492 (patch) | |
tree | 8b2176164b9bd84834d8381f1e2b102f8bb5f44d /Python/importlib_external.h | |
parent | df5dc1c7a536abc2b497cb9506f8a37949838309 (diff) | |
download | cpython-3f3d82b84823eb28abeedf317bbe107bbe7f6492.zip cpython-3f3d82b84823eb28abeedf317bbe107bbe7f6492.tar.gz cpython-3f3d82b84823eb28abeedf317bbe107bbe7f6492.tar.bz2 |
bpo-39899: os.path.expanduser(): don't guess other Windows users' home directories if the basename of the current user's home directory doesn't match their username. (GH-18841)
This makes `ntpath.expanduser()` match `pathlib.Path.expanduser()` in this regard, and is more in line with `posixpath.expanduser()`'s cautious approach.
Also remove the near-duplicate implementation of `expanduser()` in pathlib, and by doing so fix a bug where KeyError could be raised when expanding another user's home directory.
Diffstat (limited to 'Python/importlib_external.h')
0 files changed, 0 insertions, 0 deletions