@@ -899,11 +899,11 @@ \subsection{\module{encodings.idna} ---
899899This module implements \rfc {3490} (Internationalized Domain Names in
900900Applications) and \rfc {3492} (Nameprep: A Stringprep Profile for
901901Internationalized Domain Names (IDN)). It builds upon the
902- \code {punycode} encoding and \module {stringprep}.
902+ \code {punycode} encoding and \refmodule {stringprep}.
903903
904904These RFCs together define a protocol to support non-\ASCII {} characters
905905in domain names. A domain name containing non-\ASCII {} characters (such
906- as `` www.Alliancefran\c {c}aise .nu'' ) is converted into an
906+ as `` www.Alliancefran\c caise .nu'' ) is converted into an
907907\ASCII -compatible encoding (ACE, such as
908908`` www.xn--alliancefranaise-npb.nu'' ). The ACE form of the domain name
909909is then used in all places where arbitrary characters are not allowed
@@ -915,13 +915,13 @@ \subsection{\module{encodings.idna} ---
915915
916916Python supports this conversion in several ways: The \code {idna} codec
917917allows to convert between Unicode and the ACE. Furthermore, the
918- \module {socket} module transparently converts Unicode host names to
918+ \refmodule {socket} module transparently converts Unicode host names to
919919ACE, so that applications need not be concerned about converting host
920920names themselves when they pass them to the socket module. On top of
921921that, modules that have host names as function parameters, such as
922- \module {httplib} and \module {ftplib}, accept Unicode host names
923- (\module {httplib} then also transparently sends an IDNA hostname in
924- the \code {Host: } field if it sends that field at all).
922+ \refmodule {httplib} and \refmodule {ftplib}, accept Unicode host names
923+ (\refmodule {httplib} then also transparently sends an IDNA hostname in
924+ the \mailheader {Host} field if it sends that field at all).
925925
926926When receiving host names from the wire (such as in reverse name
927927lookup), no automatic conversion to Unicode is performed: Applications
0 commit comments