]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Document IDNA parameters.
authorBob Halley <halley@dnspython.org>
Tue, 20 Sep 2016 19:18:23 +0000 (12:18 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 20 Sep 2016 19:18:23 +0000 (12:18 -0700)
dns/name.py

index 8db89fa756f7f1a9ebfded623eeddfda9472b364..41ae4ca9fc5c07a5bcc0fd6b3ef3b49ce1b25662 100644 (file)
@@ -412,6 +412,16 @@ class Name(object):
 
         @param omit_final_dot: If True, don't emit the final dot (denoting the
         root label) for absolute names.  The default is False.
+        @type omit_final_dot: bool
+        @param uts46: If True, apply Unicode IDNA compatibility processing
+        as described in Unicode Technical Standard #46
+        (U{http://unicode.org/reports/tr46/})
+        @type uts46: bool
+        @param std3_rules: If True, apply STD3 rules for hostnames.
+        (You should only set this to True if you want to be very strict
+        about hostnames, and it's not appropropriate for domain names in
+        general.
+        @type std3_rules: bool
         @rtype: string
         """
 
@@ -614,6 +624,22 @@ def from_unicode(text, origin=root, uts46=False, std3_rules=False,
 
     Labels are encoded in IDN ACE form.
 
+    @param text: The text to convert into a name.
+    @type text: Unicode string
+    @param origin: The origin to append to non-absolute names.
+    @type origin: dns.name.Name
+    @param uts46: If True, apply Unicode IDNA compatibility processing
+    as described in Unicode Technical Standard #46
+    (U{http://unicode.org/reports/tr46/})
+    @type uts46: bool
+    @param std3_rules: If True, apply STD3 rules for hostnames.
+    (You should only set this to True if you want to be very strict
+    about hostnames, and it's not appropropriate for domain names in
+    general.
+    @type std3_rules: bool
+    @param transitional: If True, use the "transitional" mode described
+    in Unicode Technical Standard #46.
+    @type transitional: bool
     @rtype: dns.name.Name object
     """