cpython/Lib/urllib
Miss Islington (bot) cb07c44e19
[3.13] GH-126766: url2pathname(): handle empty authority section. (GH-126767) (#126836)
GH-126766: `url2pathname()`: handle empty authority section. (GH-126767)

Discard two leading slashes from the beginning of a `file:` URI if they
introduce an empty authority section. As a result, file URIs like
`///etc/hosts` are correctly parsed as `/etc/hosts`.
(cherry picked from commit cae9d9d20f)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
2024-11-14 23:52:36 +00:00
..
__init__.py
error.py gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100) 2023-02-22 00:14:41 +09:00
parse.py [3.13] gh-85110: Preserve relative path in URL without netloc in urllib.parse.urlunsplit() (GH-123179) (#123187) 2024-09-02 13:09:17 +02:00
request.py [3.13] GH-126766: url2pathname(): handle empty authority section. (GH-126767) (#126836) 2024-11-14 23:52:36 +00:00
response.py
robotparser.py