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

Method set_from

Lib/mailbox.py:1735–1741  ·  view source on GitHub ↗

Set "From " line, formatting and appending time_ if specified.

(self, from_, time_=None)

Source from the content-addressed store, hash-verified

1733 return self._from
1734
1735 def set_from(self, from_, time_=None):
1736 """Set "From " line, formatting and appending time_ if specified."""
1737 if time_ is not None:
1738 if time_ is True:
1739 time_ = time.gmtime()
1740 from_ += ' ' + time.asctime(time_)
1741 self._from = from_
1742
1743 def get_flags(self):
1744 """Return as a string the flags that are set."""

Callers 7

__init__Method · 0.95
get_messageMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80
test_fromMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_fromMethod · 0.64