From 29664f86809c20fd7c56447ed97db0f6e014fd40 Mon Sep 17 00:00:00 2001 From: Cheryl Sabella Date: Sat, 13 Oct 2018 16:22:38 -0400 Subject: [PATCH] In email.parser in message_from_bytes, update `strict` to `policy` 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/email.parser.rst b/Doc/library/email.parser.rst index e0cab6a6949743..49b4e992708af1 100644 --- a/Doc/library/email.parser.rst +++ b/Doc/library/email.parser.rst @@ -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