관리-도구
편집 파일: audio.cpython-310.opt-2.pyc
o 6��f� � @ s^ d gZ ddlZddlmZ ddlmZ ddlmZ ddddd �Zd d� Z G dd � d e�Z dS ) � MIMEAudio� N)�BytesIO)�encoders)�MIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifcc C sJ | d d� }t |�}tjD ]}|||�}|d ur"t�|d � S qd S )Ni r )r �sndhdrZtests�_sndhdr_MIMEmap�get)�dataZhdrZfakefileZtestfn�res� r �7/opt/alt/python310/lib64/python3.10/email/mime/audio.py�_whatsnd s �r c @ s$ e Zd Z dejfdd�dd�ZdS )r N)�policyc K sR |d u r t |�}|d u rtd��tj| d|fd|i|�� | �|� || � d S )Nz!Could not find audio MIME subtypeZaudior )r � TypeErrorr �__init__Zset_payload)�selfZ _audiodataZ_subtypeZ_encoderr Z_paramsr r r r - s � zMIMEAudio.__init__)�__name__� __module__�__qualname__r Z encode_base64r r r r r r * s ��)�__all__r �ior Zemailr Zemail.mime.nonmultipartr r r r r r r r �<module> s �