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

Method set_info

Lib/mailbox.py:1666–1671  ·  view source on GitHub ↗

Set the message's "info" string.

(self, info)

Source from the content-addressed store, hash-verified

1664 return self._info
1665
1666 def set_info(self, info):
1667 """Set the message's "info" string."""
1668 if isinstance(info, str):
1669 self._info = info
1670 else:
1671 raise TypeError('info must be a string: %s' % type(info))
1672
1673 def _explain_to(self, message):
1674 """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

no outgoing calls

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