From: Bob Halley Date: Sat, 7 Feb 2026 15:29:42 +0000 (-0800) Subject: Fix missed things in IDNA default change. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4934fab23db179e70b758b47eadfbf55ded9d1b4;p=thirdparty%2Fdnspython.git Fix missed things in IDNA default change. --- diff --git a/dns/name.py b/dns/name.py index e705126d..8aeca034 100644 --- a/dns/name.py +++ b/dns/name.py @@ -917,7 +917,7 @@ def from_unicode( append to non-absolute names. The default is the root name. *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA - encoder/decoder. If ``None``, the default IDNA 2003 encoder/decoder + encoder/decoder. If ``None``, the default IDNA encoder/decoder is used. Returns a ``dns.name.Name``. @@ -996,7 +996,7 @@ def from_text( append to non-absolute names. The default is the root name. *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA - encoder/decoder. If ``None``, the default IDNA 2003 encoder/decoder + encoder/decoder. If ``None``, the default IDNA encoder/decoder is used. Returns a ``dns.name.Name``. diff --git a/dns/tokenizer.py b/dns/tokenizer.py index 175764af..42bf45c3 100644 --- a/dns/tokenizer.py +++ b/dns/tokenizer.py @@ -224,7 +224,7 @@ class Tokenizer: filename: A filename that will be returned by the where() method. idna_codec: A dns.name.IDNACodec, specifies the IDNA - encoder/decoder. If None, the default IDNA 2003 + encoder/decoder. If None, the default IDNA encoder/decoder is used. """ @@ -244,7 +244,7 @@ class Tokenizer: will return. idna_codec: A dns.name.IDNACodec, specifies the IDNA - encoder/decoder. If None, the default IDNA 2003 + encoder/decoder. If None, the default IDNA encoder/decoder is used. """ @@ -273,7 +273,7 @@ class Tokenizer: assert filename is not None self.filename = filename if idna_codec is None: - self.idna_codec: dns.name.IDNACodec = dns.name.IDNA_2003 + self.idna_codec: dns.name.IDNACodec = dns.name.IDNA_DEFAULT else: self.idna_codec = idna_codec diff --git a/dns/zone.py b/dns/zone.py index b2708fc6..06e65520 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -1297,7 +1297,7 @@ def from_text( ``check_origin()`` method. *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA - encoder/decoder. If ``None``, the default IDNA 2003 encoder/decoder + encoder/decoder. If ``None``, the default IDNA encoder/decoder is used. *allow_directives*, a ``bool`` or an iterable of `str`. If ``True``, the default,