parameters: (self, text, headersonly=False)
return_statement: return self.parser.parsestr(text, headersonly)
docstring: Create a message structure from a byte string.
  
          Returns the root of the message structure.  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.
docstring_summary: Create a message structure from a byte string.
docstring_tokens: Create a message structure from a byte string .
function: def parsebytes(self, text, headersonly=False):
          """Create a message structure from a byte string.
  
          Returns the root of the message structure.  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.
          """
          text = text.decode('ASCII', errors='surrogateescape')
          return self.parser.parsestr(text, headersonly)
function_tokens: def parsebytes ( self , text , headersonly = False ) : text = text . decode ( 'ASCII' , errors = 'surrogateescape' ) return self . parser . parsestr ( text , headersonly )