π FileMgr
π
/
lib64
/
python3.9
/
email
/
mime
/
__pycache__
βοΈ /
β¬ Kembali
a οΏ½iοΏ½ οΏ½ @ 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)οΏ½MIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifcc C sH | ddοΏ½ }t |οΏ½}tjD ](}|||οΏ½}|durtοΏ½|d οΏ½ S qdS )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 οΏ½sndhdrZtestsοΏ½_sndhdr_MIMEmapοΏ½get)οΏ½dataZhdrZfakefileZtestfnοΏ½resοΏ½ r οΏ½(/usr/lib64/python3.9/email/mime/audio.pyοΏ½_whatsnd s r c @ s&