| Server IP : 202.155.9.38 / Your IP : 216.73.216.124 Web Server : LiteSpeed System : Linux srv733443859 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64 User : rabbi4843 ( 1044) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.10/email/mime/__pycache__/ |
Upload File : |
o
p̦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)�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&