From 0ceba5a75a3d1ab271fb682e913c077c2d347e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Thu, 21 Apr 2022 19:49:55 +0200 Subject: [PATCH] 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. --- bin/python/isc/dnskey.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/python/isc/dnskey.py.in b/bin/python/isc/dnskey.py.in index a95eb41660..605f03ef7c 100644 --- a/bin/python/isc/dnskey.py.in +++ b/bin/python/isc/dnskey.py.in @@ -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()