Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e312da

Browse files
committed
merge with 3.2
2 parents df13b5f + c875d20 commit 9e312da

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/email.parser.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ have the same API as the :class:`Parser` and :class:`BytesParser` classes.
141141
data or by a blank line. Following the header block is the body of the
142142
message (which may contain MIME-encoded subparts).
143143

144-
Optional *headersonly* is as with the :meth:`parse` method.
144+
Optional *headersonly* is a flag specifying whether to stop parsing after
145+
reading the headers or not. The default is ``False``, meaning it parses
146+
the entire contents of the file.
145147

146148
.. method:: parsestr(text, headersonly=False)
147149

@@ -150,9 +152,7 @@ have the same API as the :class:`Parser` and :class:`BytesParser` classes.
150152
equivalent to wrapping *text* in a :class:`~io.StringIO` instance first and
151153
calling :meth:`parse`.
152154

153-
Optional *headersonly* is a flag specifying whether to stop parsing after
154-
reading the headers or not. The default is ``False``, meaning it parses
155-
the entire contents of the file.
155+
Optional *headersonly* is as with the :meth:`parse` method.
156156

157157

158158
.. class:: BytesParser(_class=email.message.Message, *, policy=policy.default)

0 commit comments

Comments
 (0)