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
xmlrpclib.ServerProxy does not support 2-tuple value for uri parameter #59458
Comments
SafeTransport class supports a 2-tuple as uri, in order to pass x509 parameters to httplib.HTTPSConnection . Minimal test case to reproduce is: import xmlrpclib
xmlrpclib.ServerProxy(('https://example.com', {})) |
This is not a bug; the uri parameter is documented as an URI. Your report can be considered as a feature request (for supporting non-URI values for the uri parameter), however, Python 2 is closed for new features, so this could only be added for 3.x. Closing this as "won't fix". See for a possible work-around. |
Then I guess SafeTransport should be cleaned to remove its dead code (tuple host handling), and the class you link to should be included (in spirit if not verbatim) in xmlrpclib. Also, sorry, I realized after posting that this bug is a dupe of bpo-1581. But the closing reason here is more convincing to me than on bpo-1581. Thanks. |
The situation is now much different from what it was for bpo-1561. Python 2 is closed for anything but bug fixes; this rules out code cleanup as well. |
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: