mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Fix #13900: resolve self-referential description of a parameter.
This commit is contained in:
parent
3cd4607176
commit
c875d2032b
1 changed files with 4 additions and 4 deletions
|
|
@ -133,7 +133,9 @@ class.
|
||||||
data or by a blank line. Following the header block is the body of the
|
data or by a blank line. Following the header block is the body of the
|
||||||
message (which may contain MIME-encoded subparts).
|
message (which may contain MIME-encoded subparts).
|
||||||
|
|
||||||
Optional *headersonly* is as with the :meth:`parse` method.
|
Optional *headersonly* is a flag specifying whether to stop parsing after
|
||||||
|
reading the headers or not. The default is ``False``, meaning it parses
|
||||||
|
the entire contents of the file.
|
||||||
|
|
||||||
.. method:: parsestr(text, headersonly=False)
|
.. method:: parsestr(text, headersonly=False)
|
||||||
|
|
||||||
|
|
@ -142,9 +144,7 @@ class.
|
||||||
equivalent to wrapping *text* in a :class:`~io.StringIO` instance first and
|
equivalent to wrapping *text* in a :class:`~io.StringIO` instance first and
|
||||||
calling :meth:`parse`.
|
calling :meth:`parse`.
|
||||||
|
|
||||||
Optional *headersonly* is a flag specifying whether to stop parsing after
|
Optional *headersonly* is as with the :meth:`parse` method.
|
||||||
reading the headers or not. The default is ``False``, meaning it parses
|
|
||||||
the entire contents of the file.
|
|
||||||
|
|
||||||
|
|
||||||
.. class:: BytesParser(_class=email.message.Message, strict=None)
|
.. class:: BytesParser(_class=email.message.Message, strict=None)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue