3 \��@s6dZdgZddlmZddlmZGdd�de�ZdS)z.Class representing text/* type MIME documents.�MIMEText�)�Charset)�MIMENonMultipartc@s eZdZdZddd�dd�ZdS)rz0Class for generating text/* type MIME documents.�plainN)�policycCsf|dkr4y|jd�d}Wntk r2d}YnXtj|d|fd|idt|�i��|j||�dS)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. Nzus-asciizutf-8�textr�charset)�encode�UnicodeEncodeErrorr�__init__�strZ set_payload)�selfZ_textZ_subtypeZ_charsetr�r�'/usr/lib64/python3.6/email/mime/text.pyr s  zMIMEText.__init__)rN)�__name__� __module__� __qualname__�__doc__r rrrrrsN)r�__all__Z email.charsetrZemail.mime.nonmultipartrrrrrr�s