U
ifW @ sL d Z dddgZddlZddlmZ dd Zdd dZdddZddd
ZdS )z1Various types of useful iterators and generators.body_line_iteratortyped_subpart_iteratorwalk N)StringIOc c s. | V | r*| D ]}| E dH qdS )zWalk over the message tree, yielding each subpart.
The walk is performed in depth-first order. This method is a
generator.
N)is_multipartget_payloadr )selfsubpart r
4/opt/alt/python38/lib64/python3.8/email/iterators.pyr s Fc c s6 | D ](}|j|d}t|trt|E dH qdS )zIterate over the parts, returning string payloads line-by-line.
Optional decode (default False) is passed through to .get_payload().
)decodeN)r r
isinstancestrr )msgr r Zpayloadr
r
r r "