config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/email/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/email/generator.pyo

³ò
h”Rc@súdZddgZddkZddkZddkZddkZddkZddklZddk	l
Z
dZdZei
d	eiƒZd
„Zddd„ƒYZdZdefd
„ƒYZeeeidƒƒZdeZdd„ZdS(s:Classes to generate plain text from a message object tree.t	GeneratortDecodedGeneratoriÿÿÿÿN(tStringIO(tHeadert_s
s^From cCsCt|tƒo/yt|dƒWq?tj
otSq?XntS(Nsus-ascii(t
isinstancetstrtunicodetUnicodeErrortTruetFalse(ts((s+/usr/local/lib/python2.5/email/generator.pyt
_is8bitstrings
cBs€eZdZedd„Zd„Zed„Zd„Zd„Z	d„Z
d„Zd	„ZeZ
d
„Zd„Zd„ZRS(
sŠGenerates output from a Message object tree.

    This basic generator writes the message to the given file object as plain
    text.
    iNcCs||_||_||_dS(sáCreate the generator for message flattening.

        outfp is the output file-like object for writing the message to.  It
        must have a write() method.

        Optional mangle_from_ is a flag that, when True (the default), escapes
        From_ lines in the body of the message by putting a `>' in front of
        them.

        Optional maxheaderlen specifies the longest length for a non-continued
        header.  When a header line is longer (in characters, with tabs
        expanded to 8 spaces) than maxheaderlen, the header will split as
        defined in the Header class.  Set maxheaderlen to zero to disable
        header wrapping.  The default is 78, as recommended (but not required)
        by RFC 2822.
        N(t_fpt
_mangle_from_t
_maxheaderlen(tselftoutfptmangle_from_tmaxheaderlen((s+/usr/local/lib/python2.5/email/generator.pyt__init__+s		cCs|ii|ƒdS(N(R
twrite(RR((s+/usr/local/lib/python2.5/email/generator.pyR@scCsY|oA|iƒ}|pdtitiƒƒ}n|i|IJn|i|ƒdS(sìPrint the message object tree rooted at msg to the output file
        specified when the Generator instance was created.

        unixfrom is a flag that forces the printing of a Unix From_ delimiter
        before the first object in the message tree.  If the original message
        has no From_ delimiter, a `standard' one is crafted.  By default, this
        is False to inhibit the printing of any From_ delimiter.

        Note that for subobjects, no From_ line is printed.
        sFrom nobody N(tget_unixfromttimetctimeR
t_write(Rtmsgtunixfromtufrom((s+/usr/local/lib/python2.5/email/generator.pytflattenDscCs|i||i|iƒS(s1Clone this generator with the exact same options.(t	__class__RR(Rtfp((s+/usr/local/lib/python2.5/email/generator.pytcloneVscCs‹|i}z!tƒ|_}|i|ƒWd||_Xt|ddƒ}|djo|i|ƒn||ƒ|ii|iƒƒdS(Nt_write_headers(R
Rt	_dispatchtgetattrtNoneR!Rtgetvalue(RRtoldfptsfptmeth((s+/usr/local/lib/python2.5/email/generator.pyR^s	


cCs°|iƒ}|iƒ}ti||fƒiddƒ}t|d|dƒ}|djoF|iddƒ}t|d|dƒ}|djo
|i}q¢n||ƒdS(Nt-Rt_handle_(tget_content_maintypetget_content_subtypet
UNDERSCOREtjointreplaceR#R$t
_writeBody(RRtmaintsubtspecificR(tgeneric((s+/usr/local/lib/python2.5/email/generator.pyR"ys!

cCsÍx¿|iƒD]±\}}|id|I|idjo|i|IJq
t|tƒo|i|iƒIJq
t|ƒo|i|IJq
|it|d|id|ddƒiƒIJq
W|iJdS(Ns%s:it
maxlinelentheader_nametcontinuation_wss	(titemsR
RRRtencodeR(RRthtv((s+/usr/local/lib/python2.5/email/generator.pyR!s


cCs|iƒ}|djodSnt|tƒptdt|ƒƒ‚n|iotid|ƒ}n|i	i
|ƒdS(Nsstring payload expected: %ss>From (tget_payloadR$Rt
basestringt	TypeErrorttypeRtfcreR2R
R(RRtpayload((s+/usr/local/lib/python2.5/email/generator.pyt_handle_textªs

c
CsÝg}|iƒ}|djo
g}nFt|tƒo|ii|ƒdSnt|tƒp
|g}nxL|D]D}tƒ}|i|ƒ}|i	|dt
ƒ|i|iƒƒquWt
i|ƒ}|idt|ƒƒ}|iƒ|jo|i|ƒn|idj	o|i|iIJn|id|IJ|o|ii|idƒƒnx/|D]'}	|id|IJ|ii|	ƒqhW|iid|dƒ|idj	o|iJ|ii|iƒndS(NRtfailobjs--is
--(R<R$RR=R
RtlistRR RR
tappendR%tNLR.tget_boundaryt_make_boundarytset_boundarytpreambletpoptepilogue(
RRtmsgtextstsubpartstpartRtgtalltexttboundaryt	body_part((s+/usr/local/lib/python2.5/email/generator.pyt_handle_multipart·s@


	cCsÃg}x|iƒD]}tƒ}|i|ƒ}|i|dtƒ|iƒ}|idƒ}|o/|ddjo|iti	|d ƒƒq|i|ƒqW|i
iti	|ƒƒdS(NRs
iÿÿÿÿt(R<RR RR
R%tsplitRERFR.R
R(RRtblocksRORRPttexttlines((s+/usr/local/lib/python2.5/email/generator.pyt_handle_message_delivery_statusîs
	cCsNtƒ}|i|ƒ}|i|idƒdtƒ|ii|iƒƒdS(NiR(RR RR<R
R
RR%(RRRRP((s+/usr/local/lib/python2.5/email/generator.pyt_handle_messages	(t__name__t
__module__t__doc__R	RRR
RR RR"R!RBR0RTRZR[(((s+/usr/local/lib/python2.5/email/generator.pyR!s							7	sD[Non-text (%(type)s) part of message omitted, filename %(filename)s]cBs)eZdZeddd„Zd„ZRS(s±Generator a text representation of a message.

    Like the Generator base class, except that non-text parts are substituted
    with a format string representing the part.
    iNcCs=ti||||ƒ|djo
t|_n
||_dS(sŒLike Generator.__init__() except that an additional optional
        argument is allowed.

        Walks through all subparts of a message.  If the subpart is of main
        type `text', then it prints the decoded payload of the subpart.

        Otherwise, fmt is a format string that is used instead of the message
        payload.  fmt is expanded with the following keywords (in
        %(keyword)s format):

        type       : Full MIME type of the non-text part
        maintype   : Main MIME type of the non-text part
        subtype    : Sub-MIME type of the non-text part
        filename   : Filename of the non-text part
        description: Description associated with the non-text part
        encoding   : Content transfer encoding of the non-text part

        The default value for fmt is None, meaning

        [Non-text (%(type)s) part of message omitted, filename %(filename)s]
        N(RRR$t_FMTt_fmt(RRRRtfmt((s+/usr/local/lib/python2.5/email/generator.pyRs

c	CsÙxÒ|iƒD]Ä}|iƒ}|djo||idtƒIJq
|djoq
||ih|iƒd<|iƒd<|iƒd<|idƒd<|id	d
ƒd<|idd
ƒd<IJq
WdS(NRXtdecodet	multipartR?tmaintypetsubtypes
[no filename]tfilenamesContent-Descriptions[no description]tdescriptionsContent-Transfer-Encodings
[no encoding]tencoding(	twalkR+R<R	R`tget_content_typeR,tget_filenametget(RRRORd((s+/usr/local/lib/python2.5/email/generator.pyR"3s 


		N(R\R]R^R	R$RR"(((s+/usr/local/lib/python2.5/email/generator.pyRsis%%0%ddcCs±titiƒ}d	t|d}|djo|Sn|}d}xeto]tidti	|ƒdti
ƒ}|i|ƒpPn|dt|ƒ}|d7}qHW|S(
Nt=is==is^--s(--)?$t.is===============(
trandomt	randrangetsystmaxintR`R$R	tretcompiletescapet	MULTILINEtsearchR(RXttokenRRtbtcountertcre((s+/usr/local/lib/python2.5/email/generator.pyRHMs
&((R^t__all__RsRqRRotwarningst	cStringIORtemail.headerRR-RFRtRvR@RRR_RtlentreprRrt_widthR`R$RH(((s+/usr/local/lib/python2.5/email/generator.pys<module>s$	
î9


Man Man