@@ -45,8 +45,8 @@ Here are the methods of the :class:`Message` class:
4545 Note that this method is provided as a convenience and may not always
4646 format the message the way you want. For example, by default it mangles
4747 lines that begin with ``From ``. For more flexibility, instantiate a
48- :class: `Generator ` instance and use its :meth: `flatten ` method directly.
49- For example::
48+ :class: `~email.generator. Generator ` instance and use its :meth: `flatten `
49+ method directly. For example::
5050
5151 from io import StringIO
5252 from email.generator import Generator
@@ -122,11 +122,12 @@ Here are the methods of the :class:`Message` class:
122122 .. method :: set_charset(charset)
123123
124124 Set the character set of the payload to *charset *, which can either be a
125- :class: `Charset ` instance (see :mod: `email.charset `), a string naming a
126- character set, or ``None ``. If it is a string, it will be converted to a
127- :class: `Charset ` instance. If *charset * is ``None ``, the ``charset ``
128- parameter will be removed from the :mailheader: `Content-Type `
129- header. Anything else will generate a :exc: `TypeError `.
125+ :class: `~email.charset.Charset ` instance (see :mod: `email.charset `), a
126+ string naming a character set, or ``None ``. If it is a string, it will
127+ be converted to a :class: `~email.charset.Charset ` instance. If *charset *
128+ is ``None ``, the ``charset `` parameter will be removed from the
129+ :mailheader: `Content-Type ` header. Anything else will generate a
130+ :exc: `TypeError `.
130131
131132 The message will be assumed to be of type :mimetype: `text/\* ` encoded with
132133 *charset.input_charset *. It will be converted to *charset.output_charset *
@@ -137,8 +138,8 @@ Here are the methods of the :class:`Message` class:
137138
138139 .. method :: get_charset()
139140
140- Return the :class: `Charset ` instance associated with the message's
141- payload.
141+ Return the :class: `~email.charset. Charset ` instance associated with the
142+ message's payload.
142143
143144 The following methods implement a mapping-like interface for accessing the
144145 message's :rfc: `2822 ` headers. Note that there are some semantic differences
@@ -445,7 +446,7 @@ Here are the methods of the :class:`Message` class:
445446 that header has no ``charset `` parameter, *failobj * is returned.
446447
447448 Note that this method differs from :meth: `get_charset ` which returns the
448- :class: `Charset ` instance for the default encoding of the message body.
449+ :class: `~email.charset. Charset ` instance for the default encoding of the message body.
449450
450451
451452 .. method :: get_charsets([failobj])
@@ -495,10 +496,11 @@ Here are the methods of the :class:`Message` class:
495496 text can become visible.
496497
497498 The *preamble * attribute contains this leading extra-armor text for MIME
498- documents. When the :class: `Parser ` discovers some text after the headers
499- but before the first boundary string, it assigns this text to the
500- message's *preamble * attribute. When the :class: `Generator ` is writing
501- out the plain text representation of a MIME message, and it finds the
499+ documents. When the :class: `~email.parser.Parser ` discovers some text
500+ after the headers but before the first boundary string, it assigns this
501+ text to the message's *preamble * attribute. When the
502+ :class: `~email.generator.Generator ` is writing out the plain text
503+ representation of a MIME message, and it finds the
502504 message has a *preamble * attribute, it will write this text in the area
503505 between the headers and the first boundary. See :mod: `email.parser ` and
504506 :mod: `email.generator ` for details.
0 commit comments