diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-19 07:03:11 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-19 07:03:11 (GMT) |
commit | 319f3a10f907bf08d1698a073ca4664d366a0b2c (patch) | |
tree | 9c7dd21e4167015632e105999e1f9cd296a3cbb8 /Doc/library/email.policy.rst | |
parent | 86d26238d31c0fc9f22390c0c92839a703cf67b9 (diff) | |
parent | e0f0cf406757cea35db0aeaad592c2418d521b45 (diff) | |
download | cpython-319f3a10f907bf08d1698a073ca4664d366a0b2c.zip cpython-319f3a10f907bf08d1698a073ca4664d366a0b2c.tar.gz cpython-319f3a10f907bf08d1698a073ca4664d366a0b2c.tar.bz2 |
Issue #18761: Improved cross-references in email documentation.
Diffstat (limited to 'Doc/library/email.policy.rst')
-rw-r--r-- | Doc/library/email.policy.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/email.policy.rst b/Doc/library/email.policy.rst index 93c5350..5856879 100644 --- a/Doc/library/email.policy.rst +++ b/Doc/library/email.policy.rst @@ -315,7 +315,7 @@ added matters. To illustrate:: This concrete :class:`Policy` is the backward compatibility policy. It replicates the behavior of the email package in Python 3.2. The - :mod:`policy` module also defines an instance of this class, + :mod:`~email.policy` module also defines an instance of this class, :const:`compat32`, that is used as the default policy. Thus the default behavior of the email package is to maintain compatibility with Python 3.2. @@ -459,10 +459,11 @@ added matters. To illustrate:: .. method:: fold_binary(name, value) - The same as :meth:`fold` if :attr:`cte_type` is ``7bit``, except that - the returned value is bytes. + The same as :meth:`fold` if :attr:`~Policy.cte_type` is ``7bit``, except + that the returned value is bytes. - If :attr:`cte_type` is ``8bit``, non-ASCII binary data is converted back + If :attr:`~Policy.cte_type` is ``8bit``, non-ASCII binary data is + converted back into bytes. Headers with binary data are not refolded, regardless of the ``refold_header`` setting, since there is no way to know whether the binary data consists of single byte characters or multibyte characters. |