MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / close

Method close

tools/python-3.11.9-amd64/Lib/email/feedparser.py:182–193  ·  view source on GitHub ↗

Parse all remaining data and return the root message object.

(self)

Source from the content-addressed store, hash-verified

180 pass
181
182 def close(self):
183 """Parse all remaining data and return the root message object."""
184 self._input.close()
185 self._call_parse()
186 root = self._pop_message()
187 assert not self._msgstack
188 # Look for final set of defects
189 if root.get_content_maintype() == 'multipart' \
190 and not root.is_multipart() and not self._headersonly:
191 defect = errors.MultipartInvariantViolationDefect()
192 self.policy.handle_defect(root, defect)
193 return root
194
195 def _new_message(self):
196 if self._old_style_factory:

Callers 3

read_multiMethod · 0.95
parseMethod · 0.95
_metadata_implMethod · 0.95

Calls 5

_call_parseMethod · 0.95
_pop_messageMethod · 0.95
get_content_maintypeMethod · 0.80
is_multipartMethod · 0.80
handle_defectMethod · 0.80

Tested by

no test coverage detected