Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
In email.parser in message_from_bytes, update strict to policy (G…
…H-9854)

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 <cheryl.sabella@gmail.com>
  • Loading branch information
csabella authored and miss-islington committed Oct 16, 2018
commit 65215bfab5e1aebdcd9103d74de9e35a11bfd97e
2 changes: 1 addition & 1 deletion Doc/library/email.parser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ in the top-level :mod:`email` package namespace.

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

.. versionadded:: 3.2
Expand Down