HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/future/backports/email/__pycache__/iterators.cpython-310.pyc
o

,�],	�@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)�StringIOccs:�|V|��r|��D]}|��D]}|VqqdSdS)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�subpart�
subsubpart�r�B/usr/lib/python3/dist-packages/future/backports/email/iterators.pyrs���rFccs>�|��D]}|j|d�}t|t�rt|�D]}|VqqdS)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�textccs:�|��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�|r%td|��|d�nt|d�|��r>|��D]
}t|||d|�q2dSdS)	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