You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
337 B
9 lines
337 B
from gevent import monkey
|
|
import threading
|
|
# Make sure that we can patch gevent while holding
|
|
# a threading lock. Under Python2, where RLock is implemented
|
|
# in python code, this used to throw RuntimeErro("Cannot release un-acquired lock")
|
|
# See https://github.com/gevent/gevent/issues/615
|
|
with threading.RLock():
|
|
monkey.patch_all()
|