File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments