PHP 7.4.33
Preview: nonmultipart.py Size: 691 B
//lib64/python3.6/email/mime/nonmultipart.py

# Copyright (C) 2002-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

"""Base class for MIME type messages that are not multipart."""

__all__ = ['MIMENonMultipart']

from email import errors
from email.mime.base import MIMEBase



class MIMENonMultipart(MIMEBase):
    """Base class for MIME non-multipart type messages."""

    def attach(self, payload):
        # The public API prohibits attaching multiple subparts to MIMEBase
        # derived subtypes since none of them are, by definition, of content
        # type multipart/*
        raise errors.MultipartConversionError(
            'Cannot attach additional subparts to non-multipart/*')

Directory Contents

Dirs: 1 × Files: 9

Name Size Perms Modified Actions
- drwxr-xr-x 2025-07-03 05:10:07
Edit Download
1.29 KB lrw-r--r-- 2018-12-23 21:37:14
Edit Download
2.67 KB lrw-r--r-- 2018-12-23 21:37:14
Edit Download
916 B lrw-r--r-- 2018-12-23 21:37:14
Edit Download
1.79 KB lrw-r--r-- 2018-12-23 21:37:14
Edit Download
1.29 KB lrw-r--r-- 2018-12-23 21:37:14
Edit Download
1.58 KB lrw-r--r-- 2018-12-23 21:37:14
Edit Download
691 B lrw-r--r-- 2018-12-23 21:37:14
Edit Download
1.40 KB lrw-r--r-- 2018-12-23 21:37:14
Edit Download
0 B lrw-r--r-- 2025-07-01 22:14:41
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).