MCPcopy 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
1212class EmailMessage(MIMEPart):

Callers 2

set_contentMethod · 0.80

Calls 2

startswithMethod · 0.45
lowerMethod · 0.45

Tested by 1