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