diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-10 00:39:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 00:39:43 (GMT) |
commit | a51baec9ce0eae2b4db069a55daf8f03be3ab2f4 (patch) | |
tree | 6dccfa9e580c358e85953e2723e54e217c25a9e1 /Python/codecs.c | |
parent | a86229e82475e5e5e46327641a2be1628c7233ae (diff) | |
download | cpython-a51baec9ce0eae2b4db069a55daf8f03be3ab2f4.zip cpython-a51baec9ce0eae2b4db069a55daf8f03be3ab2f4.tar.gz cpython-a51baec9ce0eae2b4db069a55daf8f03be3ab2f4.tar.bz2 |
gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)
We could try to remedy this by taking a slice, but we then run into an issue where the empty string will match altsep on POSIX. That rabbit hole could keep getting deeper.
A proper fix for the original issue involves making pathlib's path normalisation more configurable - in this case we want to retain trailing slashes, but in other we might want to preserve `./` prefixes, or elide `../` segments when we're sure we won't encounter symlinks.
This reverts commit ea2f5bcda1a392804487e6883be89fbad38a01a5.
(cherry picked from commit dcdf250d2de1428f7d8b4e9ecf51d2fd8200e21a)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Diffstat (limited to 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions