summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-01-27 08:53:34 (GMT)
committerGitHub <noreply@github.com>2024-01-27 08:53:34 (GMT)
commit84223a0e0aabe2d2d0e3fb7dcd73050d7b1a9ed1 (patch)
treed137c08e9b326a458e14b064f7ae47dd4736306a
parent3bf5d90360a8d981a09d1c51cc680837ab6647e8 (diff)
downloadcpython-84223a0e0aabe2d2d0e3fb7dcd73050d7b1a9ed1.zip
cpython-84223a0e0aabe2d2d0e3fb7dcd73050d7b1a9ed1.tar.gz
cpython-84223a0e0aabe2d2d0e3fb7dcd73050d7b1a9ed1.tar.bz2
[3.12] gh-101100: Fix sphinx warnings in `library/email.mime.rst` (GH-114635) (GH-114640)
(cherry picked from commit 6a8944acb61d0a2c210ab8066cdcec8602110e2f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
-rw-r--r--Doc/library/email.mime.rst16
-rw-r--r--Doc/tools/.nitignore1
2 files changed, 8 insertions, 9 deletions
diff --git a/Doc/library/email.mime.rst b/Doc/library/email.mime.rst
index d7c0d20..dc0dd3b 100644
--- a/Doc/library/email.mime.rst
+++ b/Doc/library/email.mime.rst
@@ -28,7 +28,7 @@ make things easier.
Here are the classes:
-.. currentmodule:: email.mime.base
+.. module:: email.mime.base
.. class:: MIMEBase(_maintype, _subtype, *, policy=compat32, **_params)
@@ -58,7 +58,7 @@ Here are the classes:
Added *policy* keyword-only parameter.
-.. currentmodule:: email.mime.nonmultipart
+.. module:: email.mime.nonmultipart
.. class:: MIMENonMultipart()
@@ -72,7 +72,7 @@ Here are the classes:
is called, a :exc:`~email.errors.MultipartConversionError` exception is raised.
-.. currentmodule:: email.mime.multipart
+.. module:: email.mime.multipart
.. class:: MIMEMultipart(_subtype='mixed', boundary=None, _subparts=None, \
*, policy=compat32, **_params)
@@ -104,7 +104,7 @@ Here are the classes:
.. versionchanged:: 3.6
Added *policy* keyword-only parameter.
-.. currentmodule:: email.mime.application
+.. module:: email.mime.application
.. class:: MIMEApplication(_data, _subtype='octet-stream', \
_encoder=email.encoders.encode_base64, \
@@ -135,7 +135,7 @@ Here are the classes:
.. versionchanged:: 3.6
Added *policy* keyword-only parameter.
-.. currentmodule:: email.mime.audio
+.. module:: email.mime.audio
.. class:: MIMEAudio(_audiodata, _subtype=None, \
_encoder=email.encoders.encode_base64, \
@@ -169,7 +169,7 @@ Here are the classes:
.. versionchanged:: 3.6
Added *policy* keyword-only parameter.
-.. currentmodule:: email.mime.image
+.. module:: email.mime.image
.. class:: MIMEImage(_imagedata, _subtype=None, \
_encoder=email.encoders.encode_base64, \
@@ -205,7 +205,7 @@ Here are the classes:
.. versionchanged:: 3.6
Added *policy* keyword-only parameter.
-.. currentmodule:: email.mime.message
+.. module:: email.mime.message
.. class:: MIMEMessage(_msg, _subtype='rfc822', *, policy=compat32)
@@ -225,7 +225,7 @@ Here are the classes:
.. versionchanged:: 3.6
Added *policy* keyword-only parameter.
-.. currentmodule:: email.mime.text
+.. module:: email.mime.text
.. class:: MIMEText(_text, _subtype='plain', _charset=None, *, policy=compat32)
diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore
index b4c18a4..5e8c2c6 100644
--- a/Doc/tools/.nitignore
+++ b/Doc/tools/.nitignore
@@ -42,7 +42,6 @@ Doc/library/decimal.rst
Doc/library/email.charset.rst
Doc/library/email.compat32-message.rst
Doc/library/email.errors.rst
-Doc/library/email.mime.rst
Doc/library/email.parser.rst
Doc/library/email.policy.rst
Doc/library/enum.rst