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)
| 85 | |
| 86 | |
| 87 | def 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 | |
| 100 | def is_update(flags: int) -> bool: |
nothing calls this directly
no test coverage detected
searching dependent graphs…