summaryrefslogtreecommitdiffstats
path: root/Doc/library/email.message.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-19 07:03:11 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-19 07:03:11 (GMT)
commit319f3a10f907bf08d1698a073ca4664d366a0b2c (patch)
tree9c7dd21e4167015632e105999e1f9cd296a3cbb8 /Doc/library/email.message.rst
parent86d26238d31c0fc9f22390c0c92839a703cf67b9 (diff)
parente0f0cf406757cea35db0aeaad592c2418d521b45 (diff)
downloadcpython-319f3a10f907bf08d1698a073ca4664d366a0b2c.zip
cpython-319f3a10f907bf08d1698a073ca4664d366a0b2c.tar.gz
cpython-319f3a10f907bf08d1698a073ca4664d366a0b2c.tar.bz2
Issue #18761: Improved cross-references in email documentation.
Diffstat (limited to 'Doc/library/email.message.rst')
-rw-r--r--Doc/library/email.message.rst14
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/library/email.message.rst b/Doc/library/email.message.rst
index 7a74220..4a34c36 100644
--- a/Doc/library/email.message.rst
+++ b/Doc/library/email.message.rst
@@ -62,8 +62,8 @@ Here are the methods of the :class:`Message` class:
format the message the way you want. For example, by default it does
not do the mangling of lines that begin with ``From`` that is
required by the unix mbox format. For more flexibility, instantiate a
- :class:`~email.generator.Generator` instance and use its :meth:`flatten`
- method directly. For example::
+ :class:`~email.generator.Generator` instance and use its
+ :meth:`~email.generator.Generator.flatten` method directly. For example::
from io import StringIO
from email.generator import Generator
@@ -105,7 +105,8 @@ Here are the methods of the :class:`Message` class:
not do the mangling of lines that begin with ``From`` that is
required by the unix mbox format. For more flexibility, instantiate a
:class:`~email.generator.BytesGenerator` instance and use its
- :meth:`flatten` method directly. For example::
+ :meth:`~email.generator.BytesGenerator.flatten` method directly.
+ For example::
from io import BytesIO
from email.generator import BytesGenerator
@@ -530,8 +531,8 @@ Here are the methods of the :class:`Message` class:
Set the ``boundary`` parameter of the :mailheader:`Content-Type` header to
*boundary*. :meth:`set_boundary` will always quote *boundary* if
- necessary. A :exc:`HeaderParseError` is raised if the message object has
- no :mailheader:`Content-Type` header.
+ necessary. A :exc:`~email.errors.HeaderParseError` is raised if the
+ message object has no :mailheader:`Content-Type` header.
Note that using this method is subtly different than deleting the old
:mailheader:`Content-Type` header and adding a new one with the new
@@ -627,7 +628,8 @@ Here are the methods of the :class:`Message` class:
the end of the message.
You do not need to set the epilogue to the empty string in order for the
- :class:`Generator` to print a newline at the end of the file.
+ :class:`~email.generator.Generator` to print a newline at the end of the
+ file.
.. attribute:: defects