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

Function message_from_bytes

Lib/test/test_email/test_parser.py:98–99  ·  view source on GitHub ↗
(s, *args, **kw)

Source from the content-addressed store, hash-verified

96 parsers = (email.message_from_string, message_from_file)
97
98def message_from_bytes(s, *args, **kw):
99 return email.message_from_bytes(s.encode(), *args, **kw)
100
101def message_from_binary_file(s, *args, **kw):
102 f = io.BytesIO(s.encode())

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…