Sha256: d5ccb082994b970810c7bd6110de0eae15ce097ac872ca4aa7032dc76cfb0f50

Contents?: true

Size: 703 Bytes

Versions: 30

Compression:

Stored size: 703 Bytes

Contents

# Copyright (C) 2002 Python Software Foundation
# Author: barry@zope.com (Barry Warsaw)

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

from email import Errors
from email import MIMEBase



class MIMENonMultipart(MIMEBase.MIMEBase):
    """Base class for MIME multipart/* type messages."""

    __pychecker__ = 'unusednames=payload'

    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/*')

    del __pychecker__

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rubyfox-server-2.19.2.0 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.17.3.2 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.17.3.1 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.17.3.0 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.16.3.2 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.16.3.1 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.16.0.4 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.16.0.3 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.16.0.2 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.16.0.1 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.16.0.0 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.13.7.3 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.13.6.2 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.13.6.1 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.13.5.1 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.13.4.1 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.13.3.1 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.12.5.1 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.12.5.0 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py
rubyfox-server-2.12.4.0 lib/rubyfox/server/data/lib/Lib/email/MIMENonMultipart.py