/usr/lib/python3.10/email/mime/__pycache__
Edit: /usr/lib/python3.10/email/mime/__pycache__/audio.cpython-310.pyc (2631B)
o
…9j³
ã @ s` d Z dgZddlZddlmZ ddlmZ ddlmZ ddd d d
œZ dd„ Z
G d
d„ deƒZdS )z/Class representing audio/* type MIME documents.Ú MIMEAudioé N)ÚBytesIO)Úencoders)ÚMIMENonMultipartÚbasiczx-wavzx-aiff)ÚauÚwavÚaiffÚaifcc C sH | dd… }t |ƒ}tjD ]}|||ƒ}|dur!t |d ¡ S q
dS )a Try 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.
Ni r )r ÚsndhdrÚtestsÚ_sndhdr_MIMEmapÚget)ÚdataÚhdrÚfakefileÚtestfnÚres© r ú'/usr/lib/python3.10/email/mime/audio.pyÚ_whatsnd s
ÿr c @ s&