original_docstring: Parse all remaining data and return the root message object.
docstring: Parse all remaining data and return the root message object.
docstring_tokens: Parse all remaining data and return the root message object .
code: def close(self):
          """Parse all remaining data and return the root message object."""
          self._input.close()
          self._call_parse()
          root = self._pop_message()
          assert not self._msgstack
          if root.get_content_maintype(
              ) == 'multipart' and not root.is_multipart():
              defect = errors.MultipartInvariantViolationDefect()
              self.policy.handle_defect(root, defect)
          return root
code_tokens: def close ( self ) : self . _input . close ( ) self . _call_parse ( ) root = self . _pop_message ( ) assert not self . _msgstack if root . get_content_maintype ( ) == 'multipart' and not root . is_multipart ( ) : defect = errors . MultipartInvariantViolationDefect ( ) self . policy . handle_defect ( root , defect ) return root
short_docstring: Parse all remaining data and return the root message object.
short_docstring_tokens: Parse all remaining data and return the root message object .
comment: """Parse all remaining data and return the root message object."""