From 5804ad6145f70cccf40a2df52d189addbffa542e Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 27 Jun 2021 17:06:48 +0200 Subject: [PATCH] use fancy dict syntax --- respodns/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/respodns/util.py b/respodns/util.py index b1b4787..f41ef1f 100644 --- a/respodns/util.py +++ b/respodns/util.py @@ -1,8 +1,8 @@ rot13_mapping = {} for a, b, c, d in zip("anAN05", "mzMZ49", "naNA50", "zmZM94"): - rot13_mapping.update(dict((chr(k), chr(v)) - for k, v in zip(range(ord(a), ord(b) + 1), - range(ord(c), ord(d) + 1)))) + rot13_mapping.update({chr(k): chr(v) + for k, v in zip(range(ord(a), ord(b) + 1), + range(ord(c), ord(d) + 1))}) def rot13(s):