From fc02926d24c0c17fc7be9bf27c3c8fdff042fdc2 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 14 Aug 2022 10:31:48 -0700 Subject: [PATCH] Add idna_codec parameter to dns.zone.from_file() [#832] --- dns/zone.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dns/zone.py b/dns/zone.py index fe6c16af..f5f0933b 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -1248,6 +1248,7 @@ def from_file( filename: Optional[str] = None, allow_include: bool = True, check_origin: bool = True, + idna_codec: Optional[dns.name.IDNACodec] = None, ) -> Zone: """Read a zone file and build a zone object. @@ -1307,6 +1308,7 @@ def from_file( filename, allow_include, check_origin, + idna_codec, ) assert False # make mypy happy lgtm[py/unreachable-statement] -- 2.47.3