Importing twisted patch from favoyang. Fixes #55.

This commit is contained in:
Ryan Williams
2010-05-25 18:34:20 -07:00
parent 1917c87bd1
commit f1cc6364dd
2 changed files with 3 additions and 3 deletions

View File

@@ -50,4 +50,5 @@ Thanks To
* Slant, better iterator implementation in tpool
* Ambroff, nice pygtk hub example
* 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

View File

@@ -4,9 +4,8 @@ You generally don't have to use it unless you need to call reactor.run()
yourself.
"""
from eventlet.hubs.twistedr import BaseTwistedHub
from eventlet import use_hub
from eventlet.support import greenlets as greenlet
from eventlet.hubs import _threadlocal
from eventlet.hubs import _threadlocal, use_hub
use_hub(BaseTwistedHub)
assert not hasattr(_threadlocal, 'hub')