AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python35/lib64/python3.5/email/mime/__pycache__/ |
Current File : //proc/self/root/opt/alt/python35/lib64/python3.5/email/mime/__pycache__/application.cpython-35.pyc |
��Yf� � @ sI d Z d g Z d d l m Z d d l m Z Gd d � d e � Z d S)z5Class representing application/* type MIME documents.�MIMEApplication� )�encoders)�MIMENonMultipartc @ s+ e Z d Z d Z d e j d d � Z d S)r z2Class for generating application/* MIME documents.zoctet-streamc K sI | d k r t d � � t j | d | | � | j | � | | � d S)a Create an application/* type MIME document. _data is a string containing the raw application data. _subtype is the MIME content type subtype, defaulting to 'octet-stream'. _encoder is a function which will perform the actual encoding for transport of the application data, defaulting to base64 encoding. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. Nz Invalid application MIME subtypeZapplication)� TypeErrorr �__init__Zset_payload)�self�_dataZ_subtypeZ_encoderZ_params� r �;/opt/alt/python35/lib64/python3.5/email/mime/application.pyr s zMIMEApplication.__init__N)�__name__� __module__�__qualname__�__doc__r Z encode_base64r r r r r r s N)r �__all__Zemailr Zemail.mime.nonmultipartr r r r r r �<module> s