summaryrefslogtreecommitdiffstats
path: root/Python/makeopcodetargets.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2021-04-07 22:50:13 (GMT)
committerGitHub <noreply@github.com>2021-04-07 22:50:13 (GMT)
commit3f3d82b84823eb28abeedf317bbe107bbe7f6492 (patch)
tree8b2176164b9bd84834d8381f1e2b102f8bb5f44d /Python/makeopcodetargets.py
parentdf5dc1c7a536abc2b497cb9506f8a37949838309 (diff)
downloadcpython-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/makeopcodetargets.py')
0 files changed, 0 insertions, 0 deletions