Parse a bytes string into a Message object model. Optional _class and strict are passed to the Parser constructor.
(s, *args, **kws)
| 37 | return Parser(*args, **kws).parsestr(s) |
| 38 | |
| 39 | def message_from_bytes(s, *args, **kws): |
| 40 | """Parse a bytes string into a Message object model. |
| 41 | |
| 42 | Optional _class and strict are passed to the Parser constructor. |
| 43 | """ |
| 44 | from email.parser import BytesParser |
| 45 | return BytesParser(*args, **kws).parsebytes(s) |
| 46 | |
| 47 | def message_from_file(fp, *args, **kws): |
| 48 | """Read a file and parse its contents into a Message object model. |
nothing calls this directly
no test coverage detected
searching dependent graphs…