AlkantarClanX12

Your IP : 3.141.29.145


Current Path : /proc/self/root/opt/alt/python33/lib64/python3.3/email/mime/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/email/mime/__pycache__/audio.cpython-33.pyo

�
��fr
c@s�dZdgZddlZddlmZddlmZddlmZidd6d	d
6dd6dd
6Z	dd�Z
Gdd�de�ZdS(u/Class representing audio/* type MIME documents.u	MIMEAudioiN(uBytesIO(uencoders(uMIMENonMultipartubasicuauux-wavuwavux-aiffuaiffuaifccCs`|dd�}t|�}x=tjD]2}|||�}|dk	r&tj|d�Sq&WdS(uTry 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.
    Nii(uBytesIOusndhdrutestsuNoneu_sndhdr_MIMEmapuget(udatauhdrufakefileutestfnures((u5/opt/alt/python33/lib64/python3.3/email/mime/audio.pyu_whatsndsu_whatsndcBs/|EeZdZdZdejdd�ZdS(u	MIMEAudiou,Class for generating audio/* MIME documents.cKsg|dkrt|�}n|dkr6td��ntj|d||�|j|�||�dS(uCreate an audio/* type MIME document.

        _audiodata is a string containing the raw audio data.  If this data
        can be decoded by the standard Python `sndhdr' module, 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.
        u!Could not find audio MIME subtypeuaudioN(uNoneu_whatsndu	TypeErroruMIMENonMultipartu__init__uset_payload(uselfu
_audiodatau_subtypeu_encoderu_params((u5/opt/alt/python33/lib64/python3.3/email/mime/audio.pyu__init__-s
uMIMEAudio.__init__N(u__name__u
__module__u__qualname__u__doc__uNoneuencodersu
encode_base64u__init__(u
__locals__((u5/opt/alt/python33/lib64/python3.3/email/mime/audio.pyu	MIMEAudio*s(u__doc__u__all__usndhdruiouBytesIOuemailuencodersuemail.mime.nonmultipartuMIMENonMultipartu_sndhdr_MIMEmapu_whatsndu	MIMEAudio(((u5/opt/alt/python33/lib64/python3.3/email/mime/audio.pyu<module>s