Skip to content

Commit f167be4

Browse files
Apply suggestion from @bitdancer
Co-authored-by: R. David Murray <rdmurray@bitdance.com>
1 parent bb7f8a3 commit f167be4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎Doc/library/email.header.rst‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,9 @@ Here is the :class:`Header` class description:
155155
charset of ``'unknown-8bit'`` are decoded as ASCII using the ``'replace'``
156156
error handler.
157157

158-
This does not decode :rfc:`2047` encoded words that appear in the header
159-
value itself. For example,
160-
``str(Header('=?utf-8?q?Caf=C3=A9?='))`` returns the string unchanged.
161-
To decode a raw header string, use :func:`decode_header` and
158+
Note that :class:`Header` itself does not do any encoded word decoding. For example,
159+
``str(Header('=?utf-8?q?Caf=C3=A9?='))`` returns the string unchanged. To obtain
160+
a Header object with the encoded words decoded, use :func:`decode_header` and
162161
:func:`make_header`::
163162

164163
>>> from email.header import decode_header, make_header

0 commit comments

Comments
 (0)