cpython/Lib/urllib
Miss Islington (bot) 04f38bb775
[3.12] GH-126766: url2pathname(): handle empty authority section. (GH-126767) (#126837)
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:46 +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.12] gh-85110: Preserve relative path in URL without netloc in urllib.parse.urlunsplit() (GH-123179) (#123188) 2024-09-06 15:48:23 +02:00
request.py [3.12] GH-126766: url2pathname(): handle empty authority section. (GH-126767) (#126837) 2024-11-14 23:52:46 +00:00
response.py
robotparser.py