diff options
| author | Bob Halley <halley@play-bow.org> | 2018-12-01 06:57:22 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-01 06:57:22 -0800 |
| commit | b6ea7d9ffcd36657b07d237215c78d2e17f394b4 (patch) | |
| tree | acbb13b7f1cc71c7332ce38b5b9183dc806fab06 /dns/opcode.py | |
| parent | cb967d6deb01aa30793264a94e4578ad576e2ac4 (diff) | |
| parent | 368835bdf581467b0d7324eda0effc6ca09e618e (diff) | |
| download | dnspython-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.py | 2 |
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): |
