a
    åze%  ã                   @   s:   d gZ ddlZddlmZ ddlmZ G dd „ d eƒZdS )Ú	MIMEImageé    N)Úencoders)ÚMIMENonMultipartc                   @   s"   e Zd Zdejfddœdd„ZdS )r   N)Úpolicyc                K   sT   |d u rt  d |¡}|d u r$tdƒ‚tj| d|fd|i|¤Ž |  |¡ || ƒ d S )Nz"Could not guess image MIME subtypeZimager   )ÚimghdrZwhatÚ	TypeErrorr   Ú__init__Zset_payload)ÚselfZ
_imagedataZ_subtypeZ_encoderr   Z_params© r
   ú&/usr/lib/python3.9/email/mime/image.pyr      s    ÿ
zMIMEImage.__init__)Ú__name__Ú
__module__Ú__qualname__r   Zencode_base64r   r
   r
   r
   r   r      s
   ÿÿ)Ú__all__r   Zemailr   Zemail.mime.nonmultipartr   r   r
   r
   r
   r   Ú<module>   s   