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

Method _handle_multipart_signed

Lib/email/generator.py:327–336  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

325 self._write_lines(epilogue)
326
327 def _handle_multipart_signed(self, msg):
328 # The contents of signed parts has to stay unmodified in order to keep
329 # the signature intact per RFC1847 2.1, so we disable header wrapping.
330 # RDM: This isn't enough to completely preserve the part, but it helps.
331 p = self.policy
332 self.policy = p.clone(max_line_length=0)
333 try:
334 self._handle_multipart(msg)
335 finally:
336 self.policy = p
337
338 def _handle_message_delivery_status(self, msg):
339 # We can't just write the headers directly to self's file object

Callers

nothing calls this directly

Calls 2

_handle_multipartMethod · 0.95
cloneMethod · 0.45

Tested by

no test coverage detected