summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-06-05 17:54:50 (GMT)
committerGitHub <noreply@github.com>2024-06-05 17:54:50 (GMT)
commite83ce850f433fd8bbf8ff4e8d7649b942639db31 (patch)
treeca186e3e7520df9fa5f623f55dad31e34481f0d5 /Python/fileutils.c
parent14e3c7071bd1add30d4b69b62e011c7d38aebd9b (diff)
downloadcpython-e83ce850f433fd8bbf8ff4e8d7649b942639db31.zip
cpython-e83ce850f433fd8bbf8ff4e8d7649b942639db31.tar.gz
cpython-e83ce850f433fd8bbf8ff4e8d7649b942639db31.tar.bz2
pathlib ABCs: remove duplicate `realpath()` implementation. (#119178)
Add private `posixpath._realpath()` function, which is a generic version of `realpath()` that can be parameterised with string tokens (`sep`, `curdir`, `pardir`) and query functions (`getcwd`, `lstat`, `readlink`). Also add support for limiting the number of symlink traversals. In the private `pathlib._abc.PathBase` class, call `posixpath._realpath()` and remove our re-implementation of the same algorithm. No change to any public APIs, either in `posixpath` or `pathlib`. Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions