email.parser.Parser.parsestr()

parsestr(text, headersonly=False)

Similar to the parse() method, except it takes a string object instead of a file-like object. Calling this method on a string is exactly equivalent to wrapping text in a StringIO instance first and calling parse().

Optional headersonly is as with the parse() method.

doc_python
2016-10-07 17:32:50
Comments
Leave a Comment

Please login to continue.