Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/email/mime/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/email/mime/__pycache__/audio.cpython-311.pyc
�

�,d���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

ZeroDay Forums Mini