MINI MINI MANI MO
3
  \W                 @   sL   d Z dddgZddlZddlmZ dd Zdd	dZdddZddd
ZdS )z1Various types of useful iterators and generators.body_line_iteratortyped_subpart_iteratorwalk    N)StringIOc             c   s2   | V  | j  r.x| j D ]}|j E dH  qW dS )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
   '/usr/lib64/python3.6/email/iterators.pyr      s    Fc             c   s:   x4| j  D ](}|j|d}t|tr
t|E dH  q
W dS )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   "