summaryrefslogtreecommitdiffstats
path: root/Doc/library/codecs.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-05-31 04:39:00 (GMT)
committerGitHub <noreply@github.com>2018-05-31 04:39:00 (GMT)
commit0a36ac1a09587735237c5978ebd046313922869c (patch)
tree95a9ba44ac327cddbec5eb03dfb03cd1bc8f6551 /Doc/library/codecs.rst
parenta5c42284e69fb309bdd17ee8c1c120d1be383012 (diff)
downloadcpython-0a36ac1a09587735237c5978ebd046313922869c.zip
cpython-0a36ac1a09587735237c5978ebd046313922869c.tar.gz
cpython-0a36ac1a09587735237c5978ebd046313922869c.tar.bz2
bpo-33641: Convert RFC references into links. (GH-7103)
85% of them are already links.
Diffstat (limited to 'Doc/library/codecs.rst')
-rw-r--r--Doc/library/codecs.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 74b24e1..24008a0 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -1425,7 +1425,7 @@ to the user.
Python supports this conversion in several ways: the ``idna`` codec performs
conversion between Unicode and ACE, separating an input string into labels
-based on the separator characters defined in `section 3.1`_ (1) of :rfc:`3490`
+based on the separator characters defined in :rfc:`section 3.1 of RFC 3490 <3490#section-3.1>`
and converting each label to ACE as required, and conversely separating an input
byte string into labels based on the ``.`` separator and converting any ACE
labels found into unicode. Furthermore, the :mod:`socket` module
@@ -1436,8 +1436,6 @@ parameters, such as :mod:`http.client` and :mod:`ftplib`, accept Unicode host
names (:mod:`http.client` then also transparently sends an IDNA hostname in the
:mailheader:`Host` field if it sends that field at all).
-.. _section 3.1: https://tools.ietf.org/html/rfc3490#section-3.1
-
When receiving host names from the wire (such as in reverse name lookup), no
automatic conversion to Unicode is performed: Applications wishing to present
such host names to the user should decode them to Unicode.