MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _have_dnspython

Function _have_dnspython

pymongo/synchronous/srv_resolver.py:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def _have_dnspython() -> bool:
32 try:
33 import dns # noqa: F401
34
35 return True
36 except ImportError:
37 return False
38
39
40# dnspython can return bytes or str from various parts

Callers 3

run_scenarioMethod · 0.90
run_scenarioMethod · 0.90
_validate_uriFunction · 0.90

Calls

no outgoing calls

Tested by 2

run_scenarioMethod · 0.72
run_scenarioMethod · 0.72