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

Method __init__

Lib/mailbox.py:1722–1729  ·  view source on GitHub ↗

Initialize an mboxMMDFMessage instance.

(self, message=None)

Source from the content-addressed store, hash-verified

1720 _type_specific_attributes = ['_from']
1721
1722 def __init__(self, message=None):
1723 """Initialize an mboxMMDFMessage instance."""
1724 self.set_from('MAILER-DAEMON', True)
1725 if isinstance(message, email.message.Message):
1726 unixfrom = message.get_unixfrom()
1727 if unixfrom is not None and unixfrom.startswith('From '):
1728 self.set_from(unixfrom[5:])
1729 Message.__init__(self, message)
1730
1731 def get_from(self):
1732 """Return contents of "From " line."""

Callers

nothing calls this directly

Calls 4

set_fromMethod · 0.95
get_unixfromMethod · 0.80
startswithMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected