You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from urllib.request import url2pathname
url = 'file:///C:/Program%20Files'
url2pathname(url, require_scheme=True) # when True, "file:" should be included
'C:\Program Files'
url2pathname(url, require_scheme=False) # when False, "file:" should be omitted
'file:\\\C:\Program Files'
Bug report
Bug description:
CPython versions tested on:
3.14
Operating systems tested on:
Windows