Importing twisted patch from favoyang. Fixes #55.
This commit is contained in:
1
AUTHORS
1
AUTHORS
@@ -51,3 +51,4 @@ Thanks To
|
|||||||
* Ambroff, nice pygtk hub example
|
* Ambroff, nice pygtk hub example
|
||||||
* Michael Carter, and Marcin Bachry, nice repro of a bug and good diagnosis leading to the fix
|
* Michael Carter, and Marcin Bachry, nice repro of a bug and good diagnosis leading to the fix
|
||||||
* David Ziegler, reporting issue #53
|
* David Ziegler, reporting issue #53
|
||||||
|
* Favo Yang, twisted hub patch
|
@@ -4,9 +4,8 @@ You generally don't have to use it unless you need to call reactor.run()
|
|||||||
yourself.
|
yourself.
|
||||||
"""
|
"""
|
||||||
from eventlet.hubs.twistedr import BaseTwistedHub
|
from eventlet.hubs.twistedr import BaseTwistedHub
|
||||||
from eventlet import use_hub
|
|
||||||
from eventlet.support import greenlets as greenlet
|
from eventlet.support import greenlets as greenlet
|
||||||
from eventlet.hubs import _threadlocal
|
from eventlet.hubs import _threadlocal, use_hub
|
||||||
|
|
||||||
use_hub(BaseTwistedHub)
|
use_hub(BaseTwistedHub)
|
||||||
assert not hasattr(_threadlocal, 'hub')
|
assert not hasattr(_threadlocal, 'hub')
|
||||||
|
Reference in New Issue
Block a user