summaryrefslogtreecommitdiffstats
path: root/Doc/library/email.charset.rst
diff options
context:
space:
mode:
authorslateny <46876382+slateny@users.noreply.github.com>2022-05-08 14:35:32 (GMT)
committerGitHub <noreply@github.com>2022-05-08 14:35:32 (GMT)
commit8f293180791f2836570bdfc29aadba04a538d435 (patch)
tree967ba17fc6f4573d08bcfdd8a0c03d8cdc34cc21 /Doc/library/email.charset.rst
parent5ed5c5612363538a1d73dbc3948fa70ca743ba2c (diff)
downloadcpython-8f293180791f2836570bdfc29aadba04a538d435.zip
cpython-8f293180791f2836570bdfc29aadba04a538d435.tar.gz
cpython-8f293180791f2836570bdfc29aadba04a538d435.tar.bz2
gh-77630: Change Charset to charset (GH-92439)
Diffstat (limited to 'Doc/library/email.charset.rst')
-rw-r--r--Doc/library/email.charset.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/email.charset.rst b/Doc/library/email.charset.rst
index 38fda23..adbe6c1 100644
--- a/Doc/library/email.charset.rst
+++ b/Doc/library/email.charset.rst
@@ -58,9 +58,9 @@ Import this class from the :mod:`email.charset` module.
.. attribute:: header_encoding
If the character set must be encoded before it can be used in an email
- header, this attribute will be set to ``Charset.QP`` (for
- quoted-printable), ``Charset.BASE64`` (for base64 encoding), or
- ``Charset.SHORTEST`` for the shortest of QP or BASE64 encoding. Otherwise,
+ header, this attribute will be set to ``charset.QP`` (for
+ quoted-printable), ``charset.BASE64`` (for base64 encoding), or
+ ``charset.SHORTEST`` for the shortest of QP or BASE64 encoding. Otherwise,
it will be ``None``.
@@ -68,7 +68,7 @@ Import this class from the :mod:`email.charset` module.
Same as *header_encoding*, but describes the encoding for the mail
message's body, which indeed may be different than the header encoding.
- ``Charset.SHORTEST`` is not allowed for *body_encoding*.
+ ``charset.SHORTEST`` is not allowed for *body_encoding*.
.. attribute:: output_charset
@@ -175,9 +175,9 @@ new entries to the global character set, alias, and codec registries:
*charset* is the input character set, and must be the canonical name of a
character set.
- Optional *header_enc* and *body_enc* is either ``Charset.QP`` for
- quoted-printable, ``Charset.BASE64`` for base64 encoding,
- ``Charset.SHORTEST`` for the shortest of quoted-printable or base64 encoding,
+ Optional *header_enc* and *body_enc* is either ``charset.QP`` for
+ quoted-printable, ``charset.BASE64`` for base64 encoding,
+ ``charset.SHORTEST`` for the shortest of quoted-printable or base64 encoding,
or ``None`` for no encoding. ``SHORTEST`` is only valid for
*header_enc*. The default is ``None`` for no encoding.