Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
Bug description:
Windows-specific regression in Python 3.14 caused byd783d7b
Some programs generate file URLs by adding afile:// 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.
>>>fromurllib.requestimporturl2pathname>>>url2pathname('//C:/foo')'\\\\C:\\foo'# expected 'C:\\foo'
CPython versions tested on:
3.14
Operating systems tested on:
No response