summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2023-10-01 15:14:02 (GMT)
committerGitHub <noreply@github.com>2023-10-01 15:14:02 (GMT)
commit15de493395c3251b8b82063bbe22a379792b9404 (patch)
tree15ab6a3a86eb413ea6c2c708dda48e4384f07f16 /Python/modsupport.c
parent06faa9a39bd93c5e7999d52b52043ecdd0774dac (diff)
downloadcpython-15de493395c3251b8b82063bbe22a379792b9404.zip
cpython-15de493395c3251b8b82063bbe22a379792b9404.tar.gz
cpython-15de493395c3251b8b82063bbe22a379792b9404.tar.bz2
GH-107465: Add `pathlib.Path.from_uri()` classmethod. (#107640)
This method supports file URIs (including variants) as described in RFC 8089, such as URIs generated by `pathlib.Path.as_uri()` and `urllib.request.pathname2url()`. The method is added to `Path` rather than `PurePath` because it uses `os.fsdecode()`, and so its results vary from system to system. I intend to deprecate `PurePath.as_uri()` and move it to `Path` for the same reason. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Python/modsupport.c')
0 files changed, 0 insertions, 0 deletions