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

Method attach

Lib/email/mime/nonmultipart.py:16–21  ·  view source on GitHub ↗
(self, payload)

Source from the content-addressed store, hash-verified

14 """Base class for MIME non-multipart type messages."""
15
16 def attach(self, payload):
17 # The public API prohibits attaching multiple subparts to MIMEBase
18 # derived subtypes since none of them are, by definition, of content
19 # type multipart/*
20 raise errors.MultipartConversionError(
21 'Cannot attach additional subparts to non-multipart/*')

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected