8.2.34 | Linux | www-data (uid:33)
👁 View: base.py
📁 //snap/core20/current/lib/python3.8/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'
← Back
💻 Terminal
📤 Upload
📂
Click or Drag & Drop
📁 //snap/core20/current/lib/python3.8/email/mime
NameSizePermModifiedActions
📁 __pycache__/-07552026-09-01 05:21🗑 Delete
__init__.py0B06442026-03-03 11:49👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
application.py1.3K06442026-03-03 11:49👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
audio.py2.7K06442026-03-03 11:49👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
base.py916B06442026-03-03 11:49👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
image.py1.8K06442026-03-03 11:49👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
message.py1.3K06442026-03-03 11:49👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
multipart.py1.6K06442026-03-03 11:49👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
nonmultipart.py691B06442026-03-03 11:49👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
text.py1.4K06442026-03-03 11:49👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del