]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
In email.parser in message_from_bytes, update `strict` to `policy` (GH-9854) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Oct 2018 23:18:03 +0000 (16:18 -0700)
committerVictor Stinner <vstinner@redhat.com>
Fri, 19 Oct 2018 23:18:03 +0000 (01:18 +0200)
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 a5ca98537b9f3f5eeae9157b1548b741df3fbf90)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Doc/library/email.parser.rst

index e0cab6a69497431cff245b4053b892f5fe0d9111..49b4e992708af191361c651ebf50aa1e11620a4b 100644 (file)
@@ -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