%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/email/mime/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python311/lib64/python3.11/email/mime/__pycache__/audio.cpython-311.pyc

�

c��f���dZdgZddlmZddlmZddlmZGd�de��ZgZ	d�Z
d�Zed	���Zed
���Z
ed���ZdS)
z/Class representing audio/* type MIME documents.�	MIMEAudio�)�BytesIO)�encoders)�MIMENonMultipartc�.�eZdZdZdejfdd�d�ZdS)rz,Class for generating audio/* MIME documents.N)�policyc��|�t|��}|�td���tj|d|fd|i|��|�|��||��dS)a�Create an audio/* type MIME document.

        _audiodata contains the bytes for the raw audio data.  If this data
        can be decoded as au, wav, aiff, or aifc, then the
        subtype will be automatically included in the Content-Type header.
        Otherwise, you can specify  the specific audio subtype via the
        _subtype parameter.  If _subtype is not given, and no subtype can be
        guessed, a TypeError is raised.

        _encoder is a function which will perform the actual encoding for
        transport of the image data.  It takes one argument, which is this
        Image instance.  It should use get_payload() and set_payload() to
        change the payload to the encoded form.  It should also add any
        Content-Transfer-Encoding or other headers to the message as
        necessary.  The default encoding is Base64.

        Any additional keyword arguments are passed to the base class
        constructor, which turns them into parameters on the Content-Type
        header.
        Nz!Could not find audio MIME subtype�audior)�_what�	TypeErrorr�__init__�set_payload)�self�
_audiodata�_subtype�_encoderr�_paramss      �7/opt/alt/python311/lib64/python3.11/email/mime/audio.pyr
zMIMEAudio.__init__s���,���Z�(�(�H����?�@�@�@��!�$���	-�	-�&�	-�$+�	-�	-�	-�����$�$�$���������)�__name__�
__module__�__qualname__�__doc__r�
encode_base64r
�rrrrsD������6�6�,0�"�0��<@�������rc�p�|dd�}t|��}tD]}|||��x}r|cS�dS)Ni)r�_rules)�data�hdr�fakefile�testfn�ress     rrr8sY���t��t�*�C��s�|�|�H������&��h�'�'�'�3�	��J�J�J�	��trc�:�t�|��|S)N)r�append)�rulefuncs r�ruler&Gs��
�M�M�(�����Orc�P�|�d��sdS|dd�dvrdSdS)NsFORM��>�AIFC�AIFFzx-aiff��
startswith��h�fs  r�_aiffr1Ls9���<�<�� � ���t���2��w�$�$�$��x��trc�4�|�d��rdSdS)Ns.snd�basicr,r.s  r�_aur4Vs ���|�|�G�����w��trc�l�|�d��r|dd�dks|dd�dkrdSdS)NsRIFFr(r)sWAVE�sfmt zx-wavr,r.s  r�_wavr7^sF��
�<�<�� � ��A�a��d�G�w�$6�$6�!�B�r�E�(�g�:M�:M��t��wrN)r�__all__�ior�emailr�email.mime.nonmultipartrrrrr&r1r4r7rrr�<module>r<s���
6�5��-��������������4�4�4�4�4�4� � � � � � � � � �F
��������
�������������������r

Zerion Mini Shell 1.0