MCPcopy Create free account
hub / github.com/rthalley/dnspython / _message_factory_from_opcode

Function _message_factory_from_opcode

dns/message.py:1101–1108  ·  view source on GitHub ↗
(opcode)

Source from the content-addressed store, hash-verified

1099
1100
1101def _message_factory_from_opcode(opcode):
1102 if opcode == dns.opcode.QUERY:
1103 return QueryMessage
1104 elif opcode == dns.opcode.UPDATE:
1105 _maybe_import_update()
1106 return dns.update.UpdateMessage # pyright: ignore
1107 else:
1108 return Message
1109
1110
1111class _WireReader:

Callers 3

readMethod · 0.85
_make_messageMethod · 0.85
make_responseFunction · 0.85

Calls 1

_maybe_import_updateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…