MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / is_eventlet_monkey_patched

Function is_eventlet_monkey_patched

tests/__init__.py:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def is_eventlet_monkey_patched():
37 if 'eventlet.patcher' not in sys.modules:
38 return False
39 try:
40 import eventlet.patcher
41 return eventlet.patcher.is_monkey_patched('socket')
42 # Yet another case related to PYTHON-1364
43 except AttributeError:
44 return False
45
46def is_gevent_monkey_patched():
47 if 'gevent.monkey' not in sys.modules:

Callers 1

is_monkey_patchedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected