From 560329465d4a8a1a7fc6972ca0e753cdf2ca3aa8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
Date: Fri, 22 Jan 2021 13:41:05 +0100
Subject: [PATCH 1/2] Fix error on python3
keys() does not return sortable list. Make explicit list from iterable,
would work both on python2 and pyhton3.
---
contrib/queryparse/queryparse | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/queryparse/queryparse b/contrib/queryparse/queryparse
index 08a2053..29eb5d2 100755
--- a/contrib/queryparse/queryparse
+++ b/contrib/queryparse/queryparse
@@ -121,7 +121,7 @@ def main(argv):
outfile.close()
sum = 0
print("Statistics:")
- qtypes = qtypecount.keys()
+ qtypes = list(qtypecount.keys())
qtypes.sort()
for qtype in qtypes:
qtype_str = dns.rdatatype.to_text(qtype)
--
2.26.2