@@ -43,7 +43,7 @@ headers.
4343
4444 *name * and *value * are passed to ``BaseHeader `` from the
4545 :attr: `~email.policy.EmailPolicy.header_factory ` call. The string value of
46- any header object is the *value * fully decoded to unicode .
46+ any header object is the *value * fully decoded to a string .
4747
4848 This base class defines the following read-only properties:
4949
@@ -98,10 +98,10 @@ headers.
9898 defects to this list. On return, the ``kwds `` dictionary *must * contain
9999 values for at least the keys ``decoded ``, ``defects `` and ``parse_tree ``.
100100 ``decoded `` should be the string value for the header (that is, the header
101- value fully decoded to unicode ). ``parse_tree `` is set to the parse tree obtained
101+ value fully decoded to a string ). ``parse_tree `` is set to the parse tree obtained
102102 from parsing the header. The parse method should assume that *string * may
103103 contain content-transfer-encoded parts, but should correctly handle all valid
104- unicode characters as well so that it can parse un-encoded header values.
104+ Unicode characters as well so that it can parse un-encoded header values.
105105
106106 ``BaseHeader ``'s ``__new__ `` then creates the header instance, and calls its
107107 ``init `` method. The specialized class only needs to provide an ``init ``
@@ -129,7 +129,7 @@ headers.
129129 mechanism for encoding non-ASCII text as ASCII characters within a header
130130 value. When a *value * containing encoded words is passed to the
131131 constructor, the ``UnstructuredHeader `` parser converts such encoded words
132- into unicode , following the :rfc: `2047 ` rules for unstructured text. The
132+ into a string , following the :rfc: `2047 ` rules for unstructured text. The
133133 parser uses heuristics to attempt to decode certain non-compliant encoded
134134 words. Defects are registered in such cases, as well as defects for issues
135135 such as invalid characters within the encoded words or the non-encoded text.
@@ -206,8 +206,8 @@ headers.
206206 the list of addresses is "flattened" into a one dimensional list).
207207
208208 The ``decoded `` value of the header will have all encoded words decoded to
209- unicode . :class: `~encodings.idna ` encoded domain names are also decoded to
210- unicode . The ``decoded `` value is set by :ref: `joining <meth-str-join >` the
209+ a string . :class: `~encodings.idna ` encoded domain names are also decoded to
210+ a string . The ``decoded `` value is set by :ref: `joining <meth-str-join >` the
211211 :class: `str ` value of the elements of the ``groups `` attribute with ``',
212212 ' ``.
213213
@@ -391,7 +391,7 @@ construct structured values to assign to specific headers.
391391 *domain *, in which case *username * and *domain * will be parsed from the
392392 *addr_spec *. An *addr_spec * must be a properly RFC quoted string; if it is
393393 not ``Address `` will raise an error. Unicode characters are allowed and
394- will be property encoded when serialized. However, per the RFCs, unicode is
394+ will be property encoded when serialized. However, per the RFCs, Unicode is
395395 *not * allowed in the username portion of the address.
396396
397397 .. attribute :: display_name
0 commit comments