cpython/Lib/pathlib
Barney Gale 66cdb2bd8a
GH-123599: `url2pathname()`: handle authority section in file URL (#126844)
In `urllib.request.url2pathname()`, if the authority resolves to the
current host, discard it. If an authority is present but resolves somewhere
else, then on Windows we return a UNC path (as before), and on other
platforms we raise `URLError`.

Affects `pathlib.Path.from_uri()` in the same way.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-10 19:58:04 +00:00
..
__init__.py GH-123599: `url2pathname()`: handle authority section in file URL (#126844) 2025-04-10 19:58:04 +00:00
_os.py GH-128520: pathlib ABCs: validate `magic_open()` arguments (#131617) 2025-03-24 15:13:18 +00:00
types.py GH-128520: pathlib ABCs: tighten up argument types (#131621) 2025-03-24 15:39:08 +00:00