Read a binary file and parse its contents into a Message object model. Optional _class and strict are passed to the Parser constructor.
(fp, *args, **kws)
| 53 | return Parser(*args, **kws).parse(fp) |
| 54 | |
| 55 | def message_from_binary_file(fp, *args, **kws): |
| 56 | """Read a binary file and parse its contents into a Message object model. |
| 57 | |
| 58 | Optional _class and strict are passed to the Parser constructor. |
| 59 | """ |
| 60 | from email.parser import BytesParser |
| 61 | return BytesParser(*args, **kws).parse(fp) |
nothing calls this directly
no test coverage detected
searching dependent graphs…