o
    éT•j”  ã                   @   s4   d Z dgZddlZddlmZ G dd„ dejƒZdS )ú$Base class for MIME specializations.ÚMIMEBaseé    N)Úmessagec                   @   s   e Zd ZdZddœdd„ZdS )r   r   N©Úpolicyc                K   sL   |du rt jj}tjj| |d� d||f }| jd|fi |¤Ž d| d< dS )zý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.
        Nr   z%s/%szContent-Typez1.0zMIME-Version)Úemailr   Úcompat32r   ÚMessageÚ__init__Ú
add_header)ÚselfÚ	_maintypeÚ_subtyper   Ú_paramsÚctype© r   ú&/usr/lib/python3.10/email/mime/base.pyr
      s   zMIMEBase.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r   r   r      s    )r   Ú__all__Úemail.policyr   r   r	   r   r   r   r   r   Ú<module>   s
   