MCPcopy Index your code
hub / github.com/RustPython/RustPython / set_from

Method set_from

Lib/mailbox.py:1728–1734  ·  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

1726 return self._from
1727
1728 def set_from(self, from_, time_=None):
1729 """Set "From " line, formatting and appending time_ if specified."""
1730 if time_ is not None:
1731 if time_ is True:
1732 time_ = time.gmtime()
1733 from_ += ' ' + time.asctime(time_)
1734 self._from = from_
1735
1736 def get_flags(self):
1737 """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