Skip to content

Commit 6a8944a

Browse files
authored
gh-101100: Fix sphinx warnings in library/email.mime.rst (GH-114635)
1 parent 23fb9f0 commit 6a8944a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Doc/library/email.mime.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ make things easier.
2828

2929
Here are the classes:
3030

31-
.. currentmodule:: email.mime.base
31+
.. module:: email.mime.base
3232

3333
.. class:: MIMEBase(_maintype, _subtype, *, policy=compat32, **_params)
3434

@@ -58,7 +58,7 @@ Here are the classes:
5858
Added *policy* keyword-only parameter.
5959

6060

61-
.. currentmodule:: email.mime.nonmultipart
61+
.. module:: email.mime.nonmultipart
6262

6363
.. class:: MIMENonMultipart()
6464

@@ -72,7 +72,7 @@ Here are the classes:
7272
is called, a :exc:`~email.errors.MultipartConversionError` exception is raised.
7373

7474

75-
.. currentmodule:: email.mime.multipart
75+
.. module:: email.mime.multipart
7676

7777
.. class:: MIMEMultipart(_subtype='mixed', boundary=None, _subparts=None, \
7878
*, policy=compat32, **_params)
@@ -104,7 +104,7 @@ Here are the classes:
104104
.. versionchanged:: 3.6
105105
Added *policy* keyword-only parameter.
106106

107-
.. currentmodule:: email.mime.application
107+
.. module:: email.mime.application
108108

109109
.. class:: MIMEApplication(_data, _subtype='octet-stream', \
110110
_encoder=email.encoders.encode_base64, \
@@ -135,7 +135,7 @@ Here are the classes:
135135
.. versionchanged:: 3.6
136136
Added *policy* keyword-only parameter.
137137

138-
.. currentmodule:: email.mime.audio
138+
.. module:: email.mime.audio
139139

140140
.. class:: MIMEAudio(_audiodata, _subtype=None, \
141141
_encoder=email.encoders.encode_base64, \
@@ -169,7 +169,7 @@ Here are the classes:
169169
.. versionchanged:: 3.6
170170
Added *policy* keyword-only parameter.
171171

172-
.. currentmodule:: email.mime.image
172+
.. module:: email.mime.image
173173

174174
.. class:: MIMEImage(_imagedata, _subtype=None, \
175175
_encoder=email.encoders.encode_base64, \
@@ -205,7 +205,7 @@ Here are the classes:
205205
.. versionchanged:: 3.6
206206
Added *policy* keyword-only parameter.
207207

208-
.. currentmodule:: email.mime.message
208+
.. module:: email.mime.message
209209

210210
.. class:: MIMEMessage(_msg, _subtype='rfc822', *, policy=compat32)
211211

@@ -225,7 +225,7 @@ Here are the classes:
225225
.. versionchanged:: 3.6
226226
Added *policy* keyword-only parameter.
227227

228-
.. currentmodule:: email.mime.text
228+
.. module:: email.mime.text
229229

230230
.. class:: MIMEText(_text, _subtype='plain', _charset=None, *, policy=compat32)
231231

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Doc/library/decimal.rst
3333
Doc/library/email.charset.rst
3434
Doc/library/email.compat32-message.rst
3535
Doc/library/email.errors.rst
36-
Doc/library/email.mime.rst
3736
Doc/library/email.parser.rst
3837
Doc/library/email.policy.rst
3938
Doc/library/enum.rst

0 commit comments

Comments
 (0)