Commit 8584918e authored by Denis Bilenko's avatar Denis Bilenko

thread: make allocate_lock alias for LockType/Semaphore

that way it does not fail when being used as class member
parent 1663c356
......@@ -41,8 +41,7 @@ def start_new_thread(function, args=(), kwargs={}):
return get_ident(greenlet)
def allocate_lock():
return LockType(1)
allocate_lock = LockType
def exit():
......@@ -68,3 +67,4 @@ __all__ = __implements__ + __imports__
__all__.remove('_local')
# XXX interrupt_main
# XXX _count()
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