MCPcopy Index your code
hub / github.com/RustPython/RustPython / _handle_multipart_signed

Method _handle_multipart_signed

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

Source from the content-addressed store, hash-verified

324 self._write_lines(epilogue)
325
326 def _handle_multipart_signed(self, msg):
327 # The contents of signed parts has to stay unmodified in order to keep
328 # the signature intact per RFC1847 2.1, so we disable header wrapping.
329 # RDM: This isn't enough to completely preserve the part, but it helps.
330 p = self.policy
331 self.policy = p.clone(max_line_length=0)
332 try:
333 self._handle_multipart(msg)
334 finally:
335 self.policy = p
336
337 def _handle_message_delivery_status(self, msg):
338 # 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