]> granicus.if.org Git - python/commitdiff
In email.parser in message_from_bytes, update `strict` to `policy` (#9854)
authorCheryl Sabella <cheryl.sabella@gmail.com>
Tue, 16 Oct 2018 19:26:17 +0000 (15:26 -0400)
committerR. David Murray <rdmurray@bitdance.com>
Tue, 16 Oct 2018 19:26:17 +0000 (15:26 -0400)
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.

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