Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ clear_content
Method
clear_content
Lib/email/message.py:1206–1209 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1204
self._payload = None
1205
1206
def
clear_content(self):
1207
self._headers = [(n, v)
for
n, v in self._headers
1208
if
not n.lower().startswith(
'content-'
)]
1209
self._payload = None
1210
1211
1212
class
EmailMessage(MIMEPart):
Callers
2
set_content
Method · 0.80
message_as_clear_content
Method · 0.80
Calls
2
startswith
Method · 0.45
lower
Method · 0.45
Tested by
1
message_as_clear_content
Method · 0.64