��Qc@sIdZdgZddlmZddlmZdefd��YZdS(s5Class representing application/* type MIME documents.tMIMEApplicationi�(tencoders(tMIMENonMultipartcBs eZdZdejd�ZRS(s2Class for generating application/* MIME documents.soctet-streamcKsL|dkrtd��ntj|d||�|j|�||�dS(sCreate 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.
s Invalid application MIME subtypetapplicationN(tNonet TypeErrorRt__init__tset_payload(tselft_datat_subtypet_encodert_params((s,/sys/lib/python2.7/email/mime/application.pyRs
(t__name__t
__module__t__doc__Rt
encode_base64R(((s,/sys/lib/python2.7/email/mime/application.pyR
sN(Rt__all__temailRtemail.mime.nonmultipartRR(((s,/sys/lib/python2.7/email/mime/application.pyt<module>s
|