config root man

Current Path : /usr/local/lib/python2.5/

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/mimetools.pyc

³ò
h”Rc@srdZddkZddkZddkZddddddgZdeifd	„ƒYZyddkZWnej
oddkZnXei	ƒZ
[d
ad„Zdad„Zd
„Zd„ZdZhed<ed<ed<ed<dd<dd<Zhdd<dd<dd<dd<dd<dd<Zd„Zd„Zd„Zd„ZdS(s<Various tools used by MIME-reading or MIME-writing programs.iÿÿÿÿNtMessagetchoose_boundarytencodetdecodetcopyliteralt
copybinarycBskeZdZdd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d	„Z
d
„Zd„ZRS(sˆA derived class of rfc822.Message that knows about MIME headers and
    contains some hooks for decoding encoded and multipart messages.icCsRtii|||ƒ|idƒ|_|idƒ|_|iƒ|iƒdS(Nscontent-transfer-encodingscontent-type(trfc822Rt__init__t	getheadertencodingheadert
typeheadert	parsetypet
parseplist(tselftfptseekable((s%/usr/local/lib/python2.5/mimetools.pyRs

cCsß|i}|djo
d}nd|jo*|idƒ}|||_|| }n
d|_|idƒ}x4tt|ƒƒD] }||iƒiƒ||<q‚Wdi	|ƒ|_
|d|_di	|dƒ|_dS(Ns
text/plaint;tt/ii(
R
tNonetindext	plisttexttsplittrangetlentstriptlowertjointtypetmaintypetsubtype(R
tstrtitfields((s%/usr/local/lib/python2.5/mimetools.pyRs	



	
cCsÛ|i}g|_xÂ|d djo°|d}d|jo|idƒ}n
t|ƒ}|| }d|jo?|idƒ}|| iƒiƒd||diƒ}n|ii|iƒƒ||}qWdS(NiRt=(RtplistRRRRtappend(R
RtendtfR ((s%/usr/local/lib/python2.5/mimetools.pyR)s		



0cCs|iS(N(R#(R
((s%/usr/local/lib/python2.5/mimetools.pytgetplist;scCsZ|iƒd}t|ƒ}x7|iD],}|| |joti||ƒSq&q&WdS(NR"(RRR#RtunquoteR(R
tnametntp((s%/usr/local/lib/python2.5/mimetools.pytgetparam>s
cCsUg}xH|iD]=}|idƒ}|djo|i|| iƒƒqqW|S(NR"i(R#tfindR$R(R
tresultR+R ((s%/usr/local/lib/python2.5/mimetools.pyt
getparamnamesFs

cCs%|idjodSn|iiƒS(Nt7bit(R	RR(R
((s%/usr/local/lib/python2.5/mimetools.pytgetencodingNscCs|iS(N(R(R
((s%/usr/local/lib/python2.5/mimetools.pytgettypeSscCs|iS(N(R(R
((s%/usr/local/lib/python2.5/mimetools.pytgetmaintypeVscCs|iS(N(R(R
((s%/usr/local/lib/python2.5/mimetools.pyt
getsubtypeYs(
t__name__t
__module__t__doc__RRRR'R,R/R1R2R3R4(((s%/usr/local/lib/python2.5/mimetools.pyRs									icCs(tiƒtd7at}tiƒ|S(Ni(t
_counter_locktacquiret_countertrelease(R.((s%/usr/local/lib/python2.5/mimetools.pyt_get_next_counterjs



cCsõddk}tdjoÂddk}y|i|iƒƒ}Wn|ij
o
d}nXytti	ƒƒ}Wnt
j
o
d}nXyttiƒƒ}Wnt
j
o
d}nX|d|d|andt|iƒtƒfS(sxReturn a string usable as a multipart boundary.

    The string chosen is unique within a single program run, and
    incorporates the user id (if available), process id (if available),
    and current time.  So it's very unlikely the returned string appears
    in message text, but there's no guarantee.

    The boundary contains dots so you have to quote it in the header.iÿÿÿÿNs	127.0.0.1t1t.s
%s.%.3f.%d(
ttimet_prefixRtsockett
gethostbynametgethostnametgaierrortreprtostgetuidtAttributeErrortgetpidR<(R?RAthostidtuidtpid((s%/usr/local/lib/python2.5/mimetools.pyRts"
cCsá|djo ddk}|i||ƒSn|djo ddk}|i||ƒSn|djo ddk}|i||ƒSn|d
jo|i|iƒƒSn|tjot|t||ƒntd|‚dS(sDDecode common content-transfer-encodings (base64, quopri, uuencode).tbase64iÿÿÿÿNsquoted-printabletuuencodes
x-uuencodetuuesx-uueR0t8bits%unknown Content-Transfer-Encoding: %s(RNs
x-uuencodeROsx-uue(s7bitRP(	RMRtquoprituutwritetreadt	decodetabtpipethrought
ValueError(tinputtoutputtencodingRMRQRR((s%/usr/local/lib/python2.5/mimetools.pyR”s




cCsä|djo ddk}|i||ƒSn|djo#ddk}|i||dƒSn|d
jo ddk}|i||ƒSn|djo|i|iƒƒSn|tjot|t||ƒntd|‚dS(sDEncode common content-transfer-encodings (base64, quopri, uuencode).RMiÿÿÿÿNsquoted-printableiRNs
x-uuencodeROsx-uueR0RPs%unknown Content-Transfer-Encoding: %s(suuencodes
x-uuencodesuuesx-uue(s7bits8bit(	RMRRQRRRSRTt	encodetabRVRW(RXRYRZRMRQRR((s%/usr/local/lib/python2.5/mimetools.pyR§s




sa(
TEMP=/tmp/@uu.$$
sed "s%^begin [0-7][0-7]* .*%begin 600 $TEMP%" | uudecode
cat $TEMP
rm $TEMP
)RNs
x-uuencodeROsx-uuesmmencode -u -qsquoted-printablesmmencode -u -bRMsuuencode tempfilesmmencode -qsmmencode -bcCs-ti|dƒ}t||ƒ|iƒdS(Ntw(RFtpopenRtclose(RXtcommandtpipe((s%/usr/local/lib/python2.5/mimetools.pytpipeto×s
cCs}tiƒ\}}ti|dƒ}t||ƒ|iƒti|d|dƒ}t||ƒ|iƒti|ƒdS(NR\s <tr(	ttempfiletmkstempRFtfdopenRR^R]Rtunlink(RXR_RYtfdttempnamettempR`((s%/usr/local/lib/python2.5/mimetools.pyRVÜs



cCs/x(|iƒ}|pPn|i|ƒqdS(N(treadlineRS(RXRYtline((s%/usr/local/lib/python2.5/mimetools.pyRæs
cCs8d}x+|i|ƒ}|pPn|i|ƒq	dS(Ni (RTRS(RXRYtBUFSIZERk((s%/usr/local/lib/python2.5/mimetools.pyRìs(R7RFRRct__all__RtthreadtImportErrortdummy_threadt
allocate_lockR8R:R<RR@RRRt
uudecode_pipeRUR[RaRVRR(((s%/usr/local/lib/python2.5/mimetools.pys<module>sJ	W		 														
	

Man Man