diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-03-29 15:32:35 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-03-29 15:32:35 (GMT) |
commit | 86cc82e36f24e3c57bd08a49190d798afb5e6b19 (patch) | |
tree | c92b658600a50a2e40018caad8449536f652fc9a /Doc/library | |
parent | 1ebdd714acdfab938cabd45924de4e26b88aec4d (diff) | |
download | cpython-86cc82e36f24e3c57bd08a49190d798afb5e6b19.zip cpython-86cc82e36f24e3c57bd08a49190d798afb5e6b19.tar.gz cpython-86cc82e36f24e3c57bd08a49190d798afb5e6b19.tar.bz2 |
Remove the 'strict' argument to Parser, deprecated since 2.4.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/email.parser.rst | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Doc/library/email.parser.rst b/Doc/library/email.parser.rst index 77a0b69..8da0d74d 100644 --- a/Doc/library/email.parser.rst +++ b/Doc/library/email.parser.rst @@ -102,7 +102,7 @@ as a string. :class:`HeaderParser` has the same API as the :class:`Parser` class. -.. class:: Parser(_class=email.message.Message, strict=None) +.. class:: Parser(_class=email.message.Message) The constructor for the :class:`Parser` class takes an optional argument *_class*. This must be a callable factory (such as a function or a class), and @@ -110,13 +110,8 @@ class. :class:`~email.message.Message` (see :mod:`email.message`). The factory will be called without arguments. - The optional *strict* flag is ignored. - - .. deprecated:: 2.4 - Because the :class:`Parser` class is a backward compatible API wrapper - around the new-in-Python 2.4 :class:`FeedParser`, *all* parsing is - effectively non-strict. You should simply stop passing a *strict* flag to - the :class:`Parser` constructor. + .. versionchanged:: 3.2 + Removed the *strict* argument that was deprecated in 2.4. The other public :class:`Parser` methods are: |