Parse a string into a Message object model. Optional _class and strict are passed to the Parser constructor.
(s, *args, **kws)
| 29 | # of importing email since those cascadingly import most of the rest of the |
| 30 | # email package. |
| 31 | def message_from_string(s, *args, **kws): |
| 32 | """Parse a string into a Message object model. |
| 33 | |
| 34 | Optional _class and strict are passed to the Parser constructor. |
| 35 | """ |
| 36 | from email.parser import Parser |
| 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. |
searching dependent graphs…