Merge lp:~verterok/ubuntu-sso-client/fix-910163 into lp:ubuntu-sso-client
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Roberto Alsina on 2012-01-02 | ||||
| Approved revision: | 827 | ||||
| Merged at revision: | 826 | ||||
| Proposed branch: | lp:~verterok/ubuntu-sso-client/fix-910163 | ||||
| Merge into: | lp:ubuntu-sso-client | ||||
| Diff against target: |
28 lines (+2/-2) 1 file modified
ubuntu_sso/credentials.py (+2/-2) |
||||
| To merge this branch: | bzr merge lp:~verterok/ubuntu-sso-client/fix-910163 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Roberto Alsina (community) | Approve on 2012-01-02 | ||
| dobey (community) | 2011-12-30 | Approve on 2011-12-30 | |
|
Review via email:
|
|||
Commit Message
Remove _ping_url inlineCallbacks and make it return a deferred in order to make it work with twisted 11.1.
Description of the Change
Remove _ping_url inlineCallbacks and make it return a deferred in order to make it work with twisted 11.1.
I didn't add any tests with the change, as the tests are already failing in Precise.
| Guillermo Gonzalez (verterok) wrote : | # |
> This doesn't seem like a proper fix, and it doesn't fix the other methods in
> the code which have the same problem with twisted >= 11.1.0.
There are no other methods with @inlineCallbacks and not doing a yield.
It's the easiest way to fix it, as removing @inlineCallbacks we need to reimplement the @handle_failures decorator for synchronous methods, as it's decorating the wrapper with @inlineCallbacks
- 827. By Guillermo Gonzalez on 2011-12-30
-
drop inlineCallbacks decorator and return a deferred instead of doing a yield

This doesn't seem like a proper fix, and it doesn't fix the other methods in the code which have the same problem with twisted >= 11.1.0.