Current Dir: /snap/core22/2955/usr/lib/python3.10/email/mime/__pycache__/
[FILE] application.cpython-310.pyc [ edit | delete | rename ]
[FILE] audio.cpython-310.pyc [ edit | delete | rename ]
[FILE] base.cpython-310.pyc [ edit | delete | rename ]
[FILE] image.cpython-310.pyc [ edit | delete | rename ]
[FILE] message.cpython-310.pyc [ edit | delete | rename ]
[FILE] multipart.cpython-310.pyc [ edit | delete | rename ]
[FILE] nonmultipart.cpython-310.pyc [ edit | delete | rename ]
[FILE] text.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]
Viewing: /snap/core22/2955/usr/lib/python3.10/email/mime/__pycache__/message.cpython-310.pyc
o
�9j% � @ s6 d Z dgZddlmZ ddlmZ G dd� de�ZdS )�,Class representing message/* MIME documents.�MIMEMessage� )�message)�MIMENonMultipartc @ s e Zd ZdZddd�dd�ZdS )r r �rfc822N��policyc C sB t j| d||d� t|tj�std��tj�| |� | �d� dS )a� Create a message/* type MIME document.
_msg is a message object and must be an instance of Message, or a
derived class of Message, otherwise a TypeError is raised.
Optional _subtype defines the subtype of the contained message. The
default is "rfc822" (this is defined by the MIME standard, even though
the term "rfc822" is technically outdated by RFC 2822).
r r z&Argument is not an instance of Messagezmessage/rfc822N)r �__init__�
isinstancer �Message� TypeError�attach�set_default_type)�self�_msg�_subtyper � r �)/usr/lib/python3.10/email/mime/message.pyr s
zMIMEMessage.__init__)r )�__name__�
__module__�__qualname__�__doc__r r r r r r s N)r �__all__�emailr �email.mime.nonmultipartr r r r r r �<module> s