Merge lp:~mikemc/ubuntu-sso-client/fix-1017672-delayed-reaction-in-tcpactivation into lp:ubuntu-sso-client
Proposed by
Mike McCracken
on 2012-06-25
| Status: | Merged |
|---|---|
| Approved by: | Manuel de la Peña on 2012-06-26 |
| Approved revision: | 977 |
| Merged at revision: | 977 |
| Proposed branch: | lp:~mikemc/ubuntu-sso-client/fix-1017672-delayed-reaction-in-tcpactivation |
| Merge into: | lp:ubuntu-sso-client |
| Diff against target: |
85 lines (+10/-5) 2 files modified
ubuntu_sso/utils/tcpactivation.py (+3/-1) ubuntu_sso/utils/tests/test_tcpactivation.py (+7/-4) |
| To merge this branch: | bzr merge lp:~mikemc/ubuntu-sso-client/fix-1017672-delayed-reaction-in-tcpactivation |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Manuel de la Peña (community) | Approve on 2012-06-26 | ||
| Brian Curtin (community) | 2012-06-25 | Approve on 2012-06-25 | |
|
Review via email:
|
|||
Commit Message
- delay importing twisted.
Description of the Change
- delay importing twisted.
on darwin and windows, we need the qt4reactor to be installed, but only after the QApplication is initialized. however, UniqueApplication eventually imports tcpactivation, which imports twisted.
Here we delay the import to the functions that use 'reactor' to avoid its undesirable side effect.
To post a comment you must log in.
review:
Approve
lp:~mikemc/ubuntu-sso-client/fix-1017672-delayed-reaction-in-tcpactivation
updated
on 2012-06-26
- 977. By Mike McCracken on 2012-06-26
-
remove unused reactor import at top

I'm got a feeling that this was due to my tcpactivation changes, good catch! but lint does not like you :(
ubuntu_ sso/utils/ tests/test_ tcpactivation. py:
438: [W0621, server_test] Redefining name 'reactor' from outer scope (line 39)
473: [W0621, client_test] Redefining name 'reactor' from outer scope (line 39)
39: [W0611] Unused import reactor