python (3.11.7)
    eN                     T   d Z g dZddlZddlZddlZddlZddlmZ ddlm	Z	m
Z
 ddlmZ dZ
dZ ej        d	          Z ej        d
ej                  Z G d d          Z G d
 de          ZdZ G d de          Z e eej        dz
                      Zdez  Zej        ZdS )z:Classes to generate plain text from a message object tree.)	GeneratorDecodedGeneratorBytesGenerator    N)deepcopy)StringIOBytesIO)_has_surrogates_
z
\r\n|\r|\nz^From c                       e Zd ZdZddddZd ZddZd Zd	 Zd
 Z	d Z
d Zd
 Zd Z
d ZeZd Zd Zd Zd Zedd            Zed             ZdS )r   zGenerates output from a Message object tree.
    This basic generator writes the message to the given file object as plain
    text.
    Npolicyc                X    ||dn|j         }|| _        || _        || _        || _        dS )a  Create the generator for message flattening.
        outfp is the output file-like object for writing the message to.  It
        must have a write() method.
        Optional mangle_from_ is a flag that, when True (the default if policy
        is not set), escapes From_ lines in the body of the message by putting
        a `>' in front of them.
        Optional maxheaderlen specifies the longest length for a non-continued
        header.  When a header line is longer (in characters, with tabs
        expanded to 8 spaces) than maxheaderlen, the header will split as
        defined in the Header class.  Set maxheaderlen to zero to disable
        header wrapping.  The default is 78, as recommended (but not required)
        by RFC 2822.
        The policy keyword specifies a policy object that controls a number of
        aspects of the generator's operation.  If no policy is specified,
        the policy associated with the Message object passed to the
        flatten method is used.
        NT)mangle_from__fp
_mangle_from_maxheaderlenr   )selfoutfpr   r   r   s        C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/email/generator.py__init__zGenerator.__init__#   s<