o […d)ã@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@|durtdƒ‚tj|d|fd|i|¤Ž| |¡||ƒdS)aCreate an application/* type MIME document. _data contains the bytes for 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 subtypeÚ applicationr)Ú TypeErrorrÚ__init__Ú set_payload)ÚselfÚ_dataÚ_subtypeÚ_encoderrÚ_params©rú-/usr/lib/python3.10/email/mime/application.pyrsÿ  zMIMEApplication.__init__)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚ encode_base64rrrrrr sÿÿN)rÚ__all__ÚemailrÚemail.mime.nonmultipartrrrrrrÚs