HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/local/lib/python3.9/site-packages/future/backports/email/__pycache__/iterators.cpython-39.pyc
a

F�Eg,	�@szdZddlmZddlmZddlmZddlmZgd�ZddlZddlm	Z	d	d
�Z
ddd
�Zddd�Zddd�Z
dS)z1Various types of useful iterators and generators.�)�print_function)�unicode_literals)�division)�absolute_import)�body_line_iterator�typed_subpart_iterator�walkN)�StringIOccs4|V|��r0|��D]}|��D]
}|Vq"qdS)z�Walk over the message tree, yielding each subpart.

    The walk is performed in depth-first order.  This method is a
    generator.
    N)�is_multipart�get_payloadr)�self�subpartZ
subsubpart�r�J/usr/local/lib/python3.9/site-packages/future/backports/email/iterators.pyrs
rFccs<|��D].}|j|d�}t|t�rt|�D]
}|Vq*qdS)z�Iterate over the parts, returning string payloads line-by-line.

    Optional decode (default False) is passed through to .get_payload().
    )�decodeN)rr�
isinstance�strr	)�msgrr
�payload�linerrrr%s

r�textccs8|��D]*}|��|kr|dus,|��|kr|VqdS)z�Iterate over the subparts with a given MIME type.

    Use `maintype' as the main MIME type to match against; this defaults to
    "text".  Optional `subtype' is the MIME subtype to match against; if
    omitted, only the main type is matched.
    N)r�get_content_maintype�get_content_subtype)r�maintype�subtyper
rrrr1srcCs�|durtj}d|d}t||��d|d�|rJtd|��|d�n
t|d�|��r||��D]}t|||d|�qddS)	zA handy debugging aidN� ��)�end�filez [%s])r�)�sys�stdout�print�get_content_type�get_default_typer
r�
_structure)r�fp�level�include_default�tabr
rrrr&>s
r&)F)rN)NrF)�__doc__�
__future__rrrr�__all__r!�ior	rrrr&rrrr�<module>s