We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On Windows, urllib.request.url2pathname() has overly simplistic handling of DOS drives in URLs.
urllib.request.url2pathname()
Per @eryksun:
>>> from urllib.request import url2pathname >>> url2pathname('//host/share/spam.txt:eggs') 'T:\\eggs' # expected: r'\\host\share\spam.txt:eggs'
Also:
>>> url2pathname('///c:/spam.txt:eggs') OSError: Bad URL: ///c|/spam.txt|eggs # expected: r'c:\spam.txt:eggs'
CPython main branch
Windows
The text was updated successfully, but these errors were encountered:
Hi, could this be assigned to me? I'm an undergrad working to make an open source contribution to a software library. Thanks!
Sorry, something went wrong.
Hey, yes that's absolutely fine, thank you for offering! A couple of pointers:
urllib.parse.urlsplit()
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.
No branches or pull requests
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: