email.parser.BytesParser.parsebytes()

parsebytes(bytes, headersonly=False)

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

Optional headersonly is as with the parse() method.

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

Please login to continue.