PHP 8.2.30
Preview: base.py Size: 794 B
/opt/alt/python34/lib64/python3.4/email/mime/base.py

# Copyright (C) 2001-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org

"""Base class for MIME specializations."""

__all__ = ['MIMEBase']

from email import message



class MIMEBase(message.Message):
    """Base class for MIME specializations."""

    def __init__(self, _maintype, _subtype, **_params):
        """This constructor adds a Content-Type: and a MIME-Version: header.

        The Content-Type: header is taken from the _maintype and _subtype
        arguments.  Additional parameters for this header are taken from the
        keyword arguments.
        """
        message.Message.__init__(self)
        ctype = '%s/%s' % (_maintype, _subtype)
        self.add_header('Content-Type', ctype, **_params)
        self['MIME-Version'] = '1.0'

Directory Contents

Dirs: 1 × Files: 9

Name Size Perms Modified Actions
- drwxr-xr-x 2024-05-23 07:04:39
Edit Download
1.23 KB lrw-r--r-- 2024-04-17 17:09:57
Edit Download
2.61 KB lrw-r--r-- 2024-04-17 17:09:57
Edit Download
794 B lrw-r--r-- 2024-04-17 17:09:57
Edit Download
1.72 KB lrw-r--r-- 2024-04-17 17:09:57
Edit Download
1.26 KB lrw-r--r-- 2024-04-17 17:09:57
Edit Download
1.54 KB lrw-r--r-- 2024-04-17 17:09:57
Edit Download
691 B lrw-r--r-- 2024-04-17 17:09:57
Edit Download
1.33 KB lrw-r--r-- 2024-04-17 17:09:57
Edit Download
0 B lrw-r--r-- 2024-04-17 17:09:57
Edit Download

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