diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-10-19 23:18:03 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-10-19 23:18:03 (GMT) |
commit | 34634ee609852071b4bc80de7e7c83b85bc59b37 (patch) | |
tree | 360627290d92695c4b84fdf24cf8fd0e6c6f9b51 | |
parent | d92816de667169fbd54a3442705bc07286e8c69d (diff) | |
download | cpython-34634ee609852071b4bc80de7e7c83b85bc59b37.zip cpython-34634ee609852071b4bc80de7e7c83b85bc59b37.tar.gz cpython-34634ee609852071b4bc80de7e7c83b85bc59b37.tar.bz2 |
In email.parser in message_from_bytes, update `strict` to `policy` (GH-9854) (GH-9918)
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>
-rw-r--r-- | Doc/library/email.parser.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/email.parser.rst b/Doc/library/email.parser.rst index e0cab6a..49b4e99 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 |