-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
urllib.request.url2pathname() mishandles colons in URLs on Windows #126367
Comments
Hi, could this be assigned to me? I'm an undergrad working to make an open source contribution to a software library. Thanks! |
Hey, yes that's absolutely fine, thank you for offering! A couple of pointers:
|
I should also note the Python Dev Guide's Lifecycle of a Pull Request guide :) |
Thank you! Will check it out. |
Just FYI, the PR I mentioned previously has now landed, so feel free to have a crack at solving this issue! Let me know if you need a hand. |
Hey @samtstephens, if you need a hint, you could look at this code in pathlib: Lines 909 to 920 in 307c633
I think it does roughly what we want to happen in |
Thanks! Me and my partner are trying this out! |
Bug report
Bug description:
On Windows,
urllib.request.url2pathname()
has overly simplistic handling of DOS drives in URLs.Per @eryksun:
Also:
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: