Commit 08696579 authored by Denis Bilenko's avatar Denis Bilenko

add gevent.thread._local; also add '_local' to __implements__ so it will be monkey patched

parent 41187094
...@@ -12,7 +12,8 @@ __implements__ = ['allocate_lock', ...@@ -12,7 +12,8 @@ __implements__ = ['allocate_lock',
'exit', 'exit',
'LockType', 'LockType',
'stack_size', 'stack_size',
'start_new_thread'] 'start_new_thread',
'_local']
__imports__ = ['error'] __imports__ = ['error']
...@@ -21,6 +22,7 @@ error = __thread__.error ...@@ -21,6 +22,7 @@ error = __thread__.error
from gevent.hub import getcurrent, GreenletExit from gevent.hub import getcurrent, GreenletExit
from gevent.greenlet import Greenlet from gevent.greenlet import Greenlet
from gevent.coros import Semaphore as LockType from gevent.coros import Semaphore as LockType
from gevent.local import local as _local
def get_ident(gr=None): def get_ident(gr=None):
...@@ -59,5 +61,6 @@ else: ...@@ -59,5 +61,6 @@ else:
__all__ = __implements__ + __imports__ __all__ = __implements__ + __imports__
__all__.remove('_local')
# XXX interrupt_main, _local # XXX interrupt_main
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