Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python27/lib64/python2.7/email/mime/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python27/lib64/python2.7/email/mime/application.py
# Copyright (C) 2001-2006 Python Software Foundation
# Author: Keith Dart
# Contact: email-sig@python.org

"""Class representing application/* type MIME documents."""

__all__ = ["MIMEApplication"]

from email import encoders
from email.mime.nonmultipart import MIMENonMultipart


class MIMEApplication(MIMENonMultipart):
    """Class for generating application/* MIME documents."""

    def __init__(self, _data, _subtype='octet-stream',
                 _encoder=encoders.encode_base64, **_params):
        """Create an application/* type MIME document.

        _data is a string containing the raw application data.

        _subtype is the MIME content type subtype, defaulting to
        'octet-stream'.

        _encoder is a function which will perform the actual encoding for
        transport of the application data, defaulting to base64 encoding.

        Any additional keyword arguments are passed to the base class
        constructor, which turns them into parameters on the Content-Type
        header.
        """
        if _subtype is None:
            raise TypeError('Invalid application MIME subtype')
        MIMENonMultipart.__init__(self, 'application', _subtype, **_params)
        self.set_payload(_data)
        _encoder(self)
Name
Size
Permissions
Options
__init__.py
0 KB
-rw-r--r--
__init__.pyc
0.14 KB
-rw-r--r--
__init__.pyo
0.14 KB
-rw-r--r--
application.py
1.227 KB
-rw-r--r--
application.pyc
1.585 KB
-rw-r--r--
application.pyo
1.585 KB
-rw-r--r--
audio.py
2.62 KB
-rw-r--r--
audio.pyc
2.892 KB
-rw-r--r--
audio.pyo
2.892 KB
-rw-r--r--
base.py
0.775 KB
-rw-r--r--
base.pyc
1.128 KB
-rw-r--r--
base.pyo
1.128 KB
-rw-r--r--
image.py
1.723 KB
-rw-r--r--
image.pyc
2.039 KB
-rw-r--r--
image.pyo
2.039 KB
-rw-r--r--
message.py
1.256 KB
-rw-r--r--
message.pyc
1.452 KB
-rw-r--r--
message.pyo
1.452 KB
-rw-r--r--
multipart.py
1.536 KB
-rw-r--r--
multipart.pyc
1.668 KB
-rw-r--r--
multipart.pyo
1.668 KB
-rw-r--r--
nonmultipart.py
0.675 KB
-rw-r--r--
nonmultipart.pyc
0.905 KB
-rw-r--r--
nonmultipart.pyo
0.905 KB
-rw-r--r--
text.py
0.982 KB
-rw-r--r--
text.pyc
1.315 KB
-rw-r--r--
text.pyo
1.315 KB
-rw-r--r--