forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
Bug report
cpython-mingw/Lib/nturl2path.py
Line 45 in d21f60d
| def pathname2url(p): |
>>> from urllib.request import pathname2url
>>> pathname2url("C:/Users/kreij/AppData/Roaming/jupyter/runtime/jpserver-18504-open.html")
'///C://Users/kreij/AppData/Roaming/jupyter/runtime/jpserver-18504-open.html'
While the output should be
'//C:/Users/kreij/AppData/Roaming/jupyter/runtime/jpserver-18504-open.html'
With 3 '/' aka file:/// no browser gets launched
On my computer when I open explorer.exe and insert
file:///C://Users/kreij/AppData/Roaming/jupyter/runtime/jpserver-18504-open.html
nothing happens, but when I insert
file://C:/Users/kreij/AppData/Roaming/jupyter/runtime/jpserver-18504-open.html
a browser gets launched
Fixing this would fix the jupyter problem
Your environment
mingw64
Metadata
Metadata
Assignees
Labels
No labels