summaryrefslogtreecommitdiff
path: root/dns/opcode.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-08-03 06:35:22 -0700
committerBob Halley <halley@dnspython.org>2020-08-03 06:35:22 -0700
commit82bc428366df9694ce0b4cfb7d4503e9d0c38248 (patch)
tree5bd8e9641f2d229f998fffc7436bb291e17e1d7b /dns/opcode.py
parent049eedd8ab25f211d0fcd88726098327cc27ddb2 (diff)
downloaddnspython-82bc428366df9694ce0b4cfb7d4503e9d0c38248.tar.gz
add constants
Diffstat (limited to 'dns/opcode.py')
-rw-r--r--dns/opcode.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/dns/opcode.py b/dns/opcode.py
index 5a76326..32f209f 100644
--- a/dns/opcode.py
+++ b/dns/opcode.py
@@ -105,3 +105,13 @@ def is_update(flags):
"""
return from_flags(flags) == Opcode.UPDATE
+
+### BEGIN generated opcode constants
+
+QUERY = Opcode.QUERY
+IQUERY = Opcode.IQUERY
+STATUS = Opcode.STATUS
+NOTIFY = Opcode.NOTIFY
+UPDATE = Opcode.UPDATE
+
+### END generated opcode constants