D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
python38
/
lib64
/
python3.8
/
email
/
mime
/
Filename :
base.py
back
Copy
# 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
Permissions
Actions
__pycache__
Dir
July 28 2023 3:28:28
root
0755
__init__.py
0
KB
April 22 2022 10:56:20
root
0644
application.py
1.29
KB
August 30 2021 2:26:41
root
0644
audio.py
2.675
KB
August 30 2021 2:26:41
root
0644
base.py
0.895
KB
August 30 2021 2:26:41
root
0644
image.py
1.786
KB
August 30 2021 2:26:41
root
0644
message.py
1.286
KB
August 30 2021 2:26:41
root
0644
multipart.py
1.583
KB
August 30 2021 2:26:41
root
0644
nonmultipart.py
0.675
KB
August 30 2021 2:26:41
root
0644
text.py
1.403
KB
August 30 2021 2:26:41
root
0644
2017 © D7net | D704T team