Bug report
Bug description:
Windows-specific regression in Python 3.14 caused by d783d7b
Some programs generate file URLs by adding a file:// prefix to a path. On Windows, this can result in URLs like file://C:/foo. Though these URLs are malformed, they were correctly handled by urllib.request.url2pathname() until 3.14.
>>> from urllib.request import url2pathname
>>> url2pathname('//C:/foo')
'\\\\C:\\foo' # expected 'C:\\foo'
CPython versions tested on:
3.14
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
Windows-specific regression in Python 3.14 caused by d783d7b
Some programs generate file URLs by adding a
file://prefix to a path. On Windows, this can result in URLs likefile://C:/foo. Though these URLs are malformed, they were correctly handled byurllib.request.url2pathname()until 3.14.CPython versions tested on:
3.14
Operating systems tested on:
No response
Linked PRs
url2pathname(): fix support for drive letter in netloc #137060url2pathname(): fix support for drive letter in netloc (GH-137060) #137144