/usr/lib64/python3.9/email/mime/__pycache__
NameSizeModeActions
application.cpython-39.opt-1.pyc14610644editdlrm
application.cpython-39.opt-2.pyc8070644editdlrm
application.cpython-39.pyc14610644editdlrm
audio.cpython-39.opt-1.pyc26260644editdlrm
audio.cpython-39.opt-2.pyc11860644editdlrm
audio.cpython-39.pyc26260644editdlrm
base.cpython-39.opt-1.pyc10470644editdlrm
base.cpython-39.opt-2.pyc7230644editdlrm
base.cpython-39.pyc10470644editdlrm
image.cpython-39.opt-1.pyc19060644editdlrm
image.cpython-39.opt-2.pyc8290644editdlrm
image.cpython-39.pyc19060644editdlrm
message.cpython-39.opt-1.pyc12840644editdlrm
message.cpython-39.opt-2.pyc7920644editdlrm
message.cpython-39.pyc12840644editdlrm
multipart.cpython-39.opt-1.pyc15040644editdlrm
multipart.cpython-39.opt-2.pyc7080644editdlrm
multipart.cpython-39.pyc15040644editdlrm
nonmultipart.cpython-39.opt-1.pyc7660644editdlrm
nonmultipart.cpython-39.opt-2.pyc6310644editdlrm
nonmultipart.cpython-39.pyc7660644editdlrm
text.cpython-39.opt-1.pyc13110644editdlrm
text.cpython-39.opt-2.pyc8000644editdlrm
text.cpython-39.pyc13110644editdlrm
__init__.cpython-39.opt-1.pyc1340644editdlrm
__init__.cpython-39.opt-2.pyc1340644editdlrm
__init__.cpython-39.pyc1340644editdlrm
Edit: /usr/lib64/python3.9/email/mime/__pycache__/audio.cpython-39.opt-1.pyc (2626B)
a ´i³ ã@s`dZdgZddlZddlmZddlmZddlmZddd d d œZ d d „Z Gd d„deƒZ dS)z/Class representing audio/* type MIME documents.Ú MIMEAudioéN)ÚBytesIO)Úencoders)ÚMIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifccCsH|dd…}t|ƒ}tjD](}|||ƒ}|durt |d¡SqdS)aTry to identify a sound file type. sndhdr.what() has a pretty cruddy interface, unfortunately. This is why we re-do it here. It would be easier to reverse engineer the Unix 'file' command and use the standard 'magic' file, as shipped with a modern Unix. Nir)rÚsndhdrZtestsÚ_sndhdr_MIMEmapÚget)ÚdataZhdrZfakefileZtestfnÚres©r ú(/usr/lib64/python3.9/email/mime/audio.pyÚ_whatsnds   r c@s&eZdZdZdejfddœdd„ZdS)rz,Class for generating audio/* MIME documents.N)ÚpolicycKsP|durt|ƒ}|dur tdƒ‚tj|d|fd|i|¤Ž| |¡||ƒdS)a Create an audio/* type MIME document. _audiodata is a string containing the raw audio data. If this data can be decoded by the standard Python `sndhdr' module, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific audio subtype via the _subtype parameter. If _subtype is not given, and no subtype can be guessed, a TypeError is raised. _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 find audio MIME subtypeZaudior)r Ú TypeErrorrÚ__init__Z set_payload)ÚselfZ _audiodataZ_subtypeZ_encoderrZ_paramsr r r r-sÿ zMIMEAudio.__init__)Ú__name__Ú __module__Ú __qualname__Ú__doc__rZ encode_base64rr r r r r*s ÿÿ) rÚ__all__rÚiorZemailrZemail.mime.nonmultipartrrr rr r r r Ús   ý