]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Add idna_codec parameter to dns.zone.from_file() [#832]
authorBob Halley <halley@dnspython.org>
Sun, 14 Aug 2022 17:31:48 +0000 (10:31 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 14 Aug 2022 17:31:48 +0000 (10:31 -0700)
dns/zone.py

index fe6c16af73566225955da9dd1c0d40d21b809f6d..f5f0933b2900a52514555a50a0d31f46114453ed 100644 (file)
@@ -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]