Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ set_content
Method
set_content
Lib/email/message.py:1214–1217 ·
view source on GitHub ↗
(self, *args, **kw)
Source
from the content-addressed store, hash-verified
1212
class
EmailMessage(MIMEPart):
1213
1214
def
set_content(self, *args, **kw):
1215
super().set_content(*args, **kw)
1216
if
'MIME-Version'
not in self:
1217
self[
'MIME-Version'
] =
'1.0'
Callers
5
emit
Method · 0.95
test_send_message_uses_smtputf8_if_addrs_non_ascii
Method · 0.95
test_smtputf8_policy
Method · 0.95
test_smtp_policy
Method · 0.95
do_test_no_wrapping_max_line_length
Method · 0.95
Calls
2
super
Class · 0.85
set_content
Method · 0.45
Tested by
4
test_send_message_uses_smtputf8_if_addrs_non_ascii
Method · 0.76
test_smtputf8_policy
Method · 0.76
test_smtp_policy
Method · 0.76
do_test_no_wrapping_max_line_length
Method · 0.76