Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urlib.request has the wrong output? or is jupyter understanding #182

Open
Kreijstal opened this issue Nov 19, 2024 · 0 comments · May be fixed by #183
Open

urlib.request has the wrong output? or is jupyter understanding #182

Kreijstal opened this issue Nov 19, 2024 · 0 comments · May be fixed by #183

Comments

@Kreijstal
Copy link

Kreijstal commented Nov 19, 2024

msys2/MINGW-packages#21139

Bug report

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

@Kreijstal Kreijstal changed the title urlib.request has the wrong output urlib.request has the wrong output? or is jupyter understanding Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant