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

Function to_text

dns/opcode.py:87–97  ·  view source on GitHub ↗

Convert an opcode to text. *value*, an ``int`` the opcode value, Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown. Returns a ``str``.

(value: Opcode)

Source from the content-addressed store, hash-verified

85
86
87def to_text(value: Opcode) -> str:
88 """Convert an opcode to text.
89
90 *value*, an ``int`` the opcode value,
91
92 Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown.
93
94 Returns a ``str``.
95 """
96
97 return Opcode.to_text(value)
98
99
100def is_update(flags: int) -> bool:

Callers

nothing calls this directly

Calls 1

to_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…