Commit 4b216d90 authored by Jay Oster's avatar Jay Oster

[#248] Add Semaphore._py3k_acquire for PyPy 2.4

parent adb7b838
import sys
from gevent.hub import get_hub, getcurrent
from gevent.hub import get_hub, getcurrent, PYPY
from gevent.timeout import Timeout
......@@ -129,3 +129,7 @@ class Semaphore(object):
def __exit__(self, *args):
self.release()
if PYPY:
Semaphore._py3k_acquire = Semaphore.acquire
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