MCPcopy Index your code
hub / github.com/python/cpython / message_from_binary_file

Function message_from_binary_file

Lib/email/__init__.py:55–61  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

53 return Parser(*args, **kws).parse(fp)
54
55def 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)

Callers

nothing calls this directly

Calls 2

BytesParserClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…