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
urlparse.urlunsplit should be smarter about + #52903
Comments
from urlparse import *
urlunsplit(urlsplit('git+file:///foo/bar/baz'))
=> git+file:/foo/bar/baz |
Is simply adding 'git+' entries comprehensive enough? I'd have said the same thing about the addition of the 'svn+' entries, fwiw :) Is adding hardcoded entries like this the preferred way to extend urlparse? |
I have added 'git' and 'git+ssh' under known schemes which will recognize authority/netloc and follow consistent round trip parsing behaviors. For any unknown scheme(x or git+file), it might required to update the uses_netloc in the application. git+ and svn+ might not be a good idea, as git+foobar like terms might cause ambiguity. Fixed in r81130, r81131, r81132 and r81133. |
This has been in cpython since 2.7 / 3.1. See also: - python/cpython@ead169d - https://bugs.python.org/issue8657 or python/cpython#52903 (comment)
See also: - #378 (removes 'git+ssh') - python/cpython@ead169d - https://bugs.python.org/issue8657 or python/cpython#52903 (comment)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: