summaryrefslogtreecommitdiff
path: root/dns/rcode.py
diff options
context:
space:
mode:
Diffstat (limited to 'dns/rcode.py')
-rw-r--r--dns/rcode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/rcode.py b/dns/rcode.py
index eb4d1d6..4d564c7 100644
--- a/dns/rcode.py
+++ b/dns/rcode.py
@@ -62,7 +62,7 @@ _by_text = {
# cannot make any mistakes (e.g. omissions, cut-and-paste errors) that
# would cause the mapping not to be a 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 UnknownRcode(dns.exception.DNSException):