Commit 79cece1c authored by Denis Bilenko's avatar Denis Bilenko

fix issue #112: threading._sleep is not patched. Thanks to labisso.

parent 6aacdb4f
......@@ -106,6 +106,8 @@ def patch_thread(threading=True, _threading_local=True):
threading._allocate_lock = green_thread.allocate_lock
threading.Lock = green_thread.allocate_lock
threading._get_ident = green_thread.get_ident
from gevent.hub import sleep
threading._sleep = sleep
if _threading_local:
_threading_local = __import__('_threading_local')
_threading_local.local = local
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment