
    Rhr                     0    d Z dgZddlmZ  G d de      Zy)z.Class representing text/* type MIME documents.MIMEText    )MIMENonMultipartc                       e Zd ZdZddddZy)r   z0Class for generating text/* type MIME documents.N)policyc          	          |	 |j                  d       d}t        j                  | d||t	        |             | j                  ||       y# t        $ r d}Y Cw xY w)a~  Create a text/* type MIME document.

        _text is the string for this message object.

        _subtype is the MIME sub content type, defaulting to "plain".

        _charset is the character set parameter added to the Content-Type
        header.  This defaults to "us-ascii".  Note that as a side-effect, the
        Content-Transfer-Encoding header will also be set.
        Nzus-asciizutf-8text)r   charset)encodeUnicodeEncodeErrorr   __init__strset_payload)self_text_subtype_charsetr   s        &/usr/lib/python3.12/email/mime/text.pyr   zMIMEText.__init__   sg     #Z(% 	!!$*-h-	9 	) & #"#s   A AA)plainN)__name__
__module____qualname____doc__r        r   r   r      s    :* *r   N)r   __all__email.mime.nonmultipartr   r   r   r   r   <module>r      s!   
 5, 4* *r   