Server IP : 149.255.58.128 / Your IP : 216.73.216.95
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib64/python3.9/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']
import email.policy
from email import message
class MIMEBase(message.Message):
"""Base class for MIME specializations."""
def __init__(self, _maintype, _subtype, *, policy=None, **_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.
"""
if policy is None:
policy = email.policy.compat32
message.Message.__init__(self, policy=policy)
ctype = '%s/%s' % (_maintype, _subtype)
self.add_header('Content-Type', ctype, **_params)
self['MIME-Version'] = '1.0'
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | December 12 2024 22:42:25 | 0 / root | 0755 | |
__pycache__ | -- | December 12 2024 22:42:25 | 0 / root | 0755 | |
| | | | | |
__init__.py | 0 KB | December 12 2024 10:11:37 | 0 / root | 0644 | |
application.py | 1.29 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
audio.py | 2.675 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
base.py | 0.895 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
image.py | 1.786 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
message.py | 1.286 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
multipart.py | 1.583 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
nonmultipart.py | 0.675 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
text.py | 1.403 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |