mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
In email.parser in message_from_bytes, update strict
to policy
(#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.
This commit is contained in:
parent
137b0632dc
commit
a5ca98537b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue