%PDF- %PDF-
Direktori : /usr/local/lib/python3.8/email/mime/__pycache__/ |
Current File : //usr/local/lib/python3.8/email/mime/__pycache__/audio.cpython-38.pyc |
U p©ßa³ ã @ 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 ](}|||ƒ}|dk rt |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/local/lib/python3.8/email/mime/audio.pyÚ_whatsnd s r c @ s&