]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Fix missed things in IDNA default change.
authorBob Halley <halley@dnspython.org>
Sat, 7 Feb 2026 15:29:42 +0000 (07:29 -0800)
committerBob Halley <halley@dnspython.org>
Sat, 7 Feb 2026 15:29:42 +0000 (07:29 -0800)
dns/name.py
dns/tokenizer.py
dns/zone.py

index e705126ddd386ae9d98955576daffe6aab907167..8aeca034b010ada1b8f50445d113f078c681fd20 100644 (file)
@@ -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``.
index 175764af233bbae68787858fec8e8aec8cd970bf..42bf45c34d8fd7820b9eb0a616a0d9840d290fd4 100644 (file)
@@ -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
 
index b2708fc65a74fb39b9c8e441a80ba9dc05519629..06e65520f1e2a30e13b28a50a98b2a87fb489e46 100644 (file)
@@ -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,