![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3.10/email/mime/__pycache__/ |
o �*�g� � @ 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&