b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / email /
Filename/usr/lib64/python2.6/email/iterators.pyc
Size2.34 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 09:43
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@skdZdddgZddkZddklZd�Zed�Zd dd
�Z dd ed �Z
dS(
s1Various types of useful iterators and generators.tbody_line_iteratorttyped_subpart_iteratortwalkiÿÿÿÿN(tStringIOccsM|V|i�o7x4|i�D]"}x|i�D] }|Vq2WqWndS(s�Walk over the message tree, yielding each subpart.

The walk is performed in depth-first order. This method is a
generator.
N(t is_multipartt get_payloadR(tselftsubpartt
subsubpart((s'/usr/lib64/python2.6/email/iterators.pyRs


ccs]xV|i�D]H}|id|�}t|t�o xt|�D] }|VqBWq
q
WdS(s�Iterate over the parts, returning string payloads line-by-line.

Optional decode (default False) is passed through to .get_payload().
tdecodeN(RRt
isinstancet
basestringR(tmsgR Rtpayloadtline((s'/usr/lib64/python2.6/email/iterators.pyR#s

ttextccs[xT|i�D]F}|i�|jo-|djp|i�|jo |VqSq
q
WdS(sø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(Rtget_content_maintypetNonetget_content_subtype(R tmaintypetsubtypeR((s'/usr/lib64/python2.6/email/iterators.pyR/s

 icCs¢|djo
ti}nd|d}|||i�I|o|d|i�IJn|J|i�o2x/|i�D]}t|||d|�qyWndS(sA handy debugging aidt is[%s]iN(Rtsyststdouttget_content_typetget_default_typeRRt
_structure(R tfptleveltinclude_defaultttabR((s'/usr/lib64/python2.6/email/iterators.pyR=s



( t__doc__t__all__Rt cStringIORRtFalseRRRR(((s'/usr/lib64/python2.6/email/iterators.pyt<module>s