https://github.com/python/cpython/commit/6a8944acb61d0a2c210ab8066cdcec8602110e2f
commit: 6a8944acb61d0a2c210ab8066cdcec8602110e2f
branch: main
author: Nikita Sobolev <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-01-27T10:45:40+02:00
summary:
gh-101100: Fix sphinx warnings in `library/email.mime.rst` (GH-114635)
files:
M Doc/library/email.mime.rst
M Doc/tools/.nitignore
diff --git a/Doc/library/email.mime.rst b/Doc/library/email.mime.rst
index d7c0d203d191f8..dc0dd3b9eebde6 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 d56a44ad09a6f8..f48506e3a21df5 100644
--- a/Doc/tools/.nitignore
+++ b/Doc/tools/.nitignore
@@ -33,7 +33,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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]