Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/email/mime/application.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@sIdZdgZddlmZddlmZdefd��YZdS(s5Class representing application/* type MIME documents.tMIMEApplicationi�(tencoders(tMIMENonMultipartcBs eZdZdejd�ZRS(s2Class for generating application/* MIME documents.soctet-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	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.