Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34634ee

Browse files
miss-islingtoncsabella
authored andcommitted
In email.parser in message_from_bytes, update strict to policy (GH-9854) (GH-9918)
According to the versionchanged note, the `strict` argument was removed in 3.3 and `policy` was added, but the name of the argument in the paragraph wasn't updated. (cherry picked from commit a5ca985) Co-authored-by: Cheryl Sabella <[email protected]>
1 parent d92816d commit 34634ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/email.parser.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ in the top-level :mod:`email` package namespace.
238238

239239
Return a message object structure from a :term:`bytes-like object`. This is
240240
equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and
241-
*strict* are interpreted as with the :class:`~email.parser.BytesParser` class
241+
*policy* are interpreted as with the :class:`~email.parser.BytesParser` class
242242
constructor.
243243

244244
.. versionadded:: 3.2

0 commit comments

Comments
 (0)