config root man

Current Path : /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 : //usr/local/lib/python2.5/email/feedparser.pyc

³ò
h”Rc@sÈdZdgZddkZddklZddklZeidƒZeidƒZeidƒZ	eidƒZ
eid	ƒZd
ZdZ
eƒZdefd
„ƒYZddd„ƒYZdS(sFeedParser - An email feed parser.

The feed parser implements an interface for incrementally parsing an email
message, line by line.  This has advantages for certain applications, such as
those reading email messages off a socket.

FeedParser.feed() is the primary interface for pushing new data into the
parser.  It returns when there's nothing more it can do with the available
data.  When you have no more data to push into the parser, call .close().
This completes the parsing and returns the root message object.

The other advantage of this parser is that it will never throw a parsing
exception.  Instead, when it finds something unexpected, it adds a 'defect' to
the current message.  Defects are just instances that live on the message
object's .defects attribute.
t
FeedParseriÿÿÿÿN(terrors(tmessages
|
|
s(
|
|
)s	(
|
|
)$s(^(From |[\041-\071\073-\176]{1,}:|[\t ])ts
tBufferedSubFilecBsqeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
RS(skA file-ish object that can have new data loaded into it.

    You can also push and pop line-matching predicates onto a stack.  When the
    current predicate matches the current line, a false EOF response
    (i.e. empty string) is returned instead.  This lets the parser adhere to a
    simple abstraction -- it parses until EOF closes the current message.
    cCs(d|_g|_g|_t|_dS(NR(t_partialt_linest	_eofstacktFalset_closed(tself((s,/usr/local/lib/python2.5/email/feedparser.pyt__init__3s			cCs|ii|ƒdS(N(Rtappend(R
tpred((s,/usr/local/lib/python2.5/email/feedparser.pytpush_eof_matcher=scCs
|iiƒS(N(Rtpop(R
((s,/usr/local/lib/python2.5/email/feedparser.pytpop_eof_matcher@scCs)|ii|iƒd|_t|_dS(NR(RRRtTrueR	(R
((s,/usr/local/lib/python2.5/email/feedparser.pytcloseCs	cCs}|ip|iodSntSn|iiƒ}xC|iddd…D]+}||ƒo|ii|ƒdSqJqJW|S(NRiÿÿÿÿ(RR	tNeedMoreDataRRR(R
tlinetateof((s,/usr/local/lib/python2.5/email/feedparser.pytreadlineIs


cCs(|tj	pt‚|ii|ƒdS(N(RtAssertionErrorRR(R
R((s,/usr/local/lib/python2.5/email/feedparser.pyt
unreadline[scCs’|i|d}|_ti|ƒ}|iƒ|_g}xCtt|ƒdƒD]+}|i||d||ddƒqRW|i|ƒdS(s$Push some new data into this object.RiiN(RtNLCRE_cracktsplitRtrangetlenRt	pushlines(R
tdatatpartstlinesti((s,/usr/local/lib/python2.5/email/feedparser.pytpush`s)cCs|ddd…|id*dS(Niÿÿÿÿi(R(R
R ((s,/usr/local/lib/python2.5/email/feedparser.pyRsscCs|iS(N(R	(R
((s,/usr/local/lib/python2.5/email/feedparser.pyt	is_closedwscCs|S(N((R
((s,/usr/local/lib/python2.5/email/feedparser.pyt__iter__zscCs'|iƒ}|djo
t‚n|S(NR(Rt
StopIteration(R
R((s,/usr/local/lib/python2.5/email/feedparser.pytnext}s

(t__name__t
__module__t__doc__RRRRRRR"RR#R$R&(((s,/usr/local/lib/python2.5/email/feedparser.pyR+s	
									cBseeZdZeid„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd„Zd	„Z
RS(
sA feed-style parser of email.cCsO||_tƒ|_g|_|iƒi|_d|_d|_	t
|_dS(s@_factory is called with no arguments to create a new message objN(t_factoryRt_inputt	_msgstackt	_parsegenR&t_parsetNonet_curt_lastRt_headersonly(R
R*((s,/usr/local/lib/python2.5/email/feedparser.pyRˆs				cCs
t|_dS(N(RR2(R
((s,/usr/local/lib/python2.5/email/feedparser.pyt_set_headersonly“scCs|ii|ƒ|iƒdS(sPush more data into the parser.N(R+R"t_call_parse(R
R((s,/usr/local/lib/python2.5/email/feedparser.pytfeed–scCs(y|iƒWntj
onXdS(N(R.R%(R
((s,/usr/local/lib/python2.5/email/feedparser.pyR4›scCst|iiƒ|iƒ|iƒ}|ipt‚|iƒdjo(|iƒo|ii	t
iƒƒn|S(s<Parse all remaining data and return the root message object.t	multipart(R+RR4t_pop_messageR,Rtget_content_maintypetis_multiparttdefectsRRt!MultipartInvariantViolationDefect(R
troot((s,/usr/local/lib/python2.5/email/feedparser.pyR¡s

cCs…|iƒ}|io'|iiƒdjo|idƒn|io|idi|ƒn|ii|ƒ||_||_dS(Nsmultipart/digestsmessage/rfc822iÿÿÿÿ(R*R0tget_content_typetset_default_typeR,tattachRR1(R
tmsg((s,/usr/local/lib/python2.5/email/feedparser.pyt_new_message­s 
	cCs:|iiƒ}|io|id|_n
d|_|S(Niÿÿÿÿ(R,RR0R/(R
tretval((s,/usr/local/lib/python2.5/email/feedparser.pyR7·s

	ccs|iƒg}xp|iD]e}|tjotVqnti|ƒp)ti|ƒp|ii|ƒnPn|i|ƒqW|i|ƒ|i	o}g}xSt
oK|iiƒ}|tjotVq£n|djoPn|i|ƒq£W|ii
ti|ƒƒdSn|iiƒdjoxût
oó|iitiƒx.|iƒD] }|tjotVqWnPqWW|iƒ}|iiƒx5t
o-|iiƒ}|tjotVq—nPq—Wx5t
o-|iiƒ}|tjotVqÏnPqÏW|djoPn|ii|ƒq0WdSn|iiƒdjoCx.|iƒD] }|tjotVqVnPqVW|iƒdSn|iiƒdjo|iiƒ}|djoz|iiitiƒƒg}x7|iD],}|tjotVqçn|i|ƒqçW|ii
ti|ƒƒdSnd|}tidti|ƒdƒ}t
}	g}
t}xét
oá|iiƒ}|tjotVqwn|djoPn|i|ƒ}|or|idƒo|id	ƒ}Pn|	o|
o[|
d
}
t i!|
ƒ}|o"|
t"|idƒƒ |
d
<nti|
ƒ|i_#nt}	|ii|ƒqwnx_t
oW|iiƒ}|tjotVq{n|i|ƒ}|p|ii|ƒPq{q{W|ii|iƒx.|iƒD] }|tjotVqúnPqúW|i$iƒdjo~|i$i%}|djod|i$_%q|dj	oDt i!|ƒ}|o*t"|idƒƒ}|| |i$_%q®qnh|i$i&ƒ}t'|t(ƒoHt i!|ƒ}|o.|t"|idƒƒ }|i$i
|ƒqn|iiƒ|iƒ|i|_$qw|	pt)‚|
i|ƒqwW|	o‚|iiiti*ƒƒ|ii
ti|
ƒƒg}x*|iD]}|tjotVq©q©q©Wti|ƒ|i_%dSn|o
dg}ng}x7|iD],}|tjotVq
n|i|ƒq
W|oE|d}t+i|ƒ}|o!|t"|idƒƒ|d<q‰nti|ƒ|i_%dSng}x7|iD],}|tjotVq¶n|i|ƒq¶W|ii
ti|ƒƒdS(NRsmessage/delivery-statusRR6s--s(?P<sep>s4)(?P<end>--)?(?P<ws>[ \t]*)(?P<linesep>\r\n|\r|\n)?$tendtlinesepiÿÿÿÿi(,RAR+RtheaderREtmatchtNLCRERRt_parse_headersR2RRR0tset_payloadtEMPTYSTRINGtjoinR=RR-R7RR8tget_boundaryR/R:RtNoBoundaryInMultipartDefecttretcompiletescapeRtgroupt	NLCRE_eoltsearchRtpreambleR1tepiloguetget_payloadt
isinstancet
basestringRtStartBoundaryNotFoundDefectt	NLCRE_bol(R
theadersRR RBR@tboundaryt	separatort
boundaryretcapturing_preambleRTRDtmotlastlineteolmoRURCtpayloadt	firstlinetbolmo((s,/usr/local/lib/python2.5/email/feedparser.pyR-¿sh























"













%

c
Csd}g}xÖt|ƒD]È\}}|ddjoD|p)ti|ƒ}|iii|ƒqn|i|ƒqn|o:ti|ƒd idƒ}||i|<dg}}n|i	dƒo°|djoKt
i|ƒ}|o|t|i
dƒƒ }n|ii|ƒqq{|t|ƒdjo|ii|ƒdSq{ti|ƒ}|iii|ƒqn|idƒ}	|	djo)ti|ƒ}|iii|ƒqn||	 }||	diƒg}qW|o#ti|ƒidƒ|i|<ndS(	NRis 	iÿÿÿÿs
sFrom it:(t	enumerateRt#FirstHeaderLineIsContinuationDefectR0R:RRJRKtrstript
startswithRRRSRRQtset_unixfromR+RtMisplacedEnvelopeHeaderDefecttfindtMalformedHeaderDefecttlstrip(
R
R t
lastheadert	lastvaluetlinenoRtdefecttlhdrR`R!((s,/usr/local/lib/python2.5/email/feedparser.pyRH«sJ





(R'R(R)RtMessageRR3R5R4RRAR7R-RH(((s,/usr/local/lib/python2.5/email/feedparser.pyR…s					
		ì((R)t__all__RNtemailRRRORGRZRRRRERJtNLtobjectRRR(((s,/usr/local/lib/python2.5/email/feedparser.pys<module>s		Z

Man Man