[Python-checkins] In email.parser in message_from_bytes, update `strict` to `policy` (GH-9854) (#9917)

R. David Murray webhook-mailer at python.org
Thu Oct 18 20:16:19 EDT 2018


https://github.com/python/cpython/commit/8ba831f847e8f800834e5f3f452a9c2b5fdef171
commit: 8ba831f847e8f800834e5f3f452a9c2b5fdef171
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: R. David Murray <rdmurray at bitdance.com>
date: 2018-10-18T20:16:16-04:00
summary:

In email.parser in message_from_bytes, update `strict` to `policy` (GH-9854) (#9917)

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 at gmail.com>

files:
M Doc/library/email.parser.rst

diff --git a/Doc/library/email.parser.rst b/Doc/library/email.parser.rst
index e0cab6a69497..49b4e992708a 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



More information about the Python-checkins mailing list