/usr/lib/python3.9/site-packages/future/backports/email/mime/__pycache__
a �cs � @ sb d Z ddlmZ ddlmZ ddlmZ dgZddlZddlmZ ddl m Z G d d� de �ZdS ) z/Class representing image/* type MIME documents.� )�unicode_literals)�division)�absolute_import� MIMEImageN)�encoders)�MIMENonMultipartc @ s e Zd ZdZdejfdd�ZdS )r z1Class for generating image/* type MIME documents.Nc K sP |du rt �d|�}|du r$td��tj| d|fi |�� | �|� || � dS )a� Create an image/* type MIME document. _imagedata is a string containing the raw image data. If this data can be decoded by the standard Python `imghdr' module, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific image subtype via the _subtype parameter. _encoder is a function which will perform the actual encoding for transport of the image data. It takes one argument, which is this Image instance. It should use get_payload() and set_payload() to change the payload to the encoded form. It should also add any Content-Transfer-Encoding or other headers to the message as necessary. The default encoding is Base64. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. Nz"Could not guess image MIME subtypeZimage)�imghdrZwhat� TypeErrorr �__init__Zset_payload)�selfZ _imagedataZ_subtypeZ_encoderZ_params� r �E/usr/lib/python3.9/site-packages/future/backports/email/mime/image.pyr s zMIMEImage.__init__)�__name__� __module__�__qualname__�__doc__r Z encode_base64r r r r r r s �)r Z __future__r r r �__all__r Zfuture.backports.emailr Z(future.backports.email.mime.nonmultipartr r r r r r �<module> s
.
Edit
..
Edit
__init__.cpython-39.opt-1.pyc
Edit
__init__.cpython-39.pyc
Edit
application.cpython-39.opt-1.pyc
Edit
application.cpython-39.pyc
Edit
audio.cpython-39.opt-1.pyc
Edit
audio.cpython-39.pyc
Edit
base.cpython-39.opt-1.pyc
Edit
base.cpython-39.pyc
Edit
image.cpython-39.opt-1.pyc
Edit
image.cpython-39.pyc
Edit
message.cpython-39.opt-1.pyc
Edit
message.cpython-39.pyc
Edit
multipart.cpython-39.opt-1.pyc
Edit
multipart.cpython-39.pyc
Edit
nonmultipart.cpython-39.opt-1.pyc
Edit
nonmultipart.cpython-39.pyc
Edit
text.cpython-39.opt-1.pyc
Edit
text.cpython-39.pyc
Edit