summaryrefslogtreecommitdiff
path: root/dns/opcode.py
diff options
context:
space:
mode:
authorBob Halley <halley@play-bow.org>2018-12-01 06:57:22 -0800
committerGitHub <noreply@github.com>2018-12-01 06:57:22 -0800
commitb6ea7d9ffcd36657b07d237215c78d2e17f394b4 (patch)
treeacbb13b7f1cc71c7332ce38b5b9183dc806fab06 /dns/opcode.py
parentcb967d6deb01aa30793264a94e4578ad576e2ac4 (diff)
parent368835bdf581467b0d7324eda0effc6ca09e618e (diff)
downloaddnspython-b6ea7d9ffcd36657b07d237215c78d2e17f394b4.tar.gz
Merge pull request #334 from hugovk/update-versions
Update supported versions
Diffstat (limited to 'dns/opcode.py')
-rw-r--r--dns/opcode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/opcode.py b/dns/opcode.py
index 5dcd2ab..249e359 100644
--- a/dns/opcode.py
+++ b/dns/opcode.py
@@ -40,7 +40,7 @@ _by_text = {
# cannot make any mistakes (e.g. omissions, cut-and-paste errors) that
# would cause the mapping not to be true inverse.
-_by_value = dict((y, x) for x, y in _by_text.items())
+_by_value = {y: x for x, y in _by_text.items()}
class UnknownOpcode(dns.exception.DNSException):