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

Method set_info

Lib/mailbox.py:1659–1664  ·  view source on GitHub ↗

Set the message's "info" string.

(self, info)

Source from the content-addressed store, hash-verified

1657 return self._info
1658
1659 def set_info(self, info):
1660 """Set the message's "info" string."""
1661 if isinstance(info, str):
1662 self._info = info
1663 else:
1664 raise TypeError('info must be a string: %s' % type(info))
1665
1666 def _explain_to(self, message):
1667 """Copy Maildir-specific state to message insofar as possible."""

Callers 6

get_messageMethod · 0.95
test_add_MMMethod · 0.95
test_set_MMMethod · 0.95
test_get_infoMethod · 0.95
test_infoMethod · 0.95
test_info_and_flagsMethod · 0.95

Calls 1

isinstanceFunction · 0.85

Tested by 5

test_add_MMMethod · 0.76
test_set_MMMethod · 0.76
test_get_infoMethod · 0.76
test_infoMethod · 0.76
test_info_and_flagsMethod · 0.76