Merge lp:~gz/launchpad/py27_xmlrpc_transport_timeout into lp:launchpad
Proposed by
Martin Packman
on 2012-06-28
| Status: | Merged |
|---|---|
| Approved by: | Jelmer Vernooij on 2012-06-28 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15514 |
| Proposed branch: | lp:~gz/launchpad/py27_xmlrpc_transport_timeout |
| Merge into: | lp:launchpad |
| Diff against target: |
85 lines (+12/-31) 2 files modified
lib/lp/services/tests/test_xmlrpc.py (+5/-20) lib/lp/services/xmlrpc.py (+7/-11) |
| To merge this branch: | bzr merge lp:~gz/launchpad/py27_xmlrpc_transport_timeout |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Jelmer Vernooij (community) | 2012-06-28 | Approve on 2012-06-28 | |
|
Review via email:
|
|||
Commit Message
Cleanup lp.services.xmlrpc for Python 2.7 compatibility
Description of the Change
In Python 2.7 xmlrpclib started using HTTPConnection directly rather than the legacy compat HTTP wrapper around it. The custom Transport subclass that passes down a socket timeout therefore needed fixing to return the right thing from make_connection which varies by version. Using the existing make_connection method and poking the timeout attribute onto the correct class reduces the complexity and avoids needing to care (as much) about which version of xmlrpclib is used.
To post a comment you must log in.
review:
Approve
