3 \)ã@s6dZdgZddlmZddlmZGdd„deƒZdS)z5Class representing application/* type MIME documents.ÚMIMEApplicationé)Úencoders)ÚMIMENonMultipartc@s&eZdZdZdejfddœdd„ZdS)rz2Class for generating application/* MIME documents.z octet-streamN)ÚpolicycKs@|dkrtdƒ‚tj|d|fd|i|—Ž|j|ƒ||ƒdS)aCreate 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 subtypeZ applicationr)Ú TypeErrorrÚ__init__Z set_payload)ÚselfÚ_dataZ_subtypeZ_encoderrZ_params©r ú#/usr/lib64/python3.6/application.pyrs  zMIMEApplication.__init__)Ú__name__Ú __module__Ú __qualname__Ú__doc__rZ encode_base64rr r r r r sN)rÚ__all__ZemailrZemail.mime.nonmultipartrrr r r r Ús