|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/lib64/python3.6/email/mime/__pycache__/ |
Upload File : |
3
\�
� @ 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 |�}x.tjD ]$}|||�}|dk rtj|d �S qW 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 �sndhdrZtests�_sndhdr_MIMEmap�get)�dataZhdrZfakefileZtestfn�res� r �/usr/lib64/python3.6/audio.py�_whatsnd s
r
c @ s&