summaryrefslogtreecommitdiff
path: root/dns/opcode.py
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2010-01-16 19:15:13 -0800
committerBob Halley <halley@nominum.com>2010-01-25 08:20:25 -0800
commit89fcd1409056afc73362f3836ef1cd99156b093e (patch)
tree2aba764ca1c34d2dcc1a1065409b9cf370f24cb8 /dns/opcode.py
parent53cb0eb5cfb463ebd0fdad55026ba25ac5c898d4 (diff)
downloaddnspython-89fcd1409056afc73362f3836ef1cd99156b093e.tar.gz
Initial python 3 port (may have sharp edges still!)
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 705bd09..b6b9f9a 100644
--- a/dns/opcode.py
+++ b/dns/opcode.py
@@ -35,7 +35,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.iteritems()])
+_by_value = dict([(y, x) for x, y in _by_text.items()])
class UnknownOpcode(dns.exception.DNSException):