Remove universal newline mode when opening the file

It is default when open is called and obsolete. Removed in python 3.11,
where it triggers errors. Just use normal read-only text opening.
This commit is contained in:
Petr Menšík
2022-04-28 05:38:42 +00:00
committed by Mark Andrews
parent b98658a99a
commit 0ceba5a75a
+1 -1
View File
@@ -90,7 +90,7 @@ class dnskey:
self.sep = False
kfp.close()
pfp = open(private_file, "rU")
pfp = open(private_file, "r")
self.metadata = dict()
self._changed = dict()