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/binhex.pyo

³ò
h”Rc@s²dZddkZddkZddkZddkZdddgZdefd„ƒYZedƒ\Z	Z
ZdZd	Z
ed
ƒZy<ddklZlZddklZd
„Zd„ZWnBej
o6dd$d„ƒYZd„Zdd%d„ƒYZnXdd&d„ƒYZdd'd„ƒYZdd(d„ƒYZd„Zdd)d„ƒYZdd*d„ƒYZdd+d „ƒYZd!„Zd"„Z e!d#joe ƒndS(,s‰Macintosh binhex compression/decompression.

easy interface:
binhex(inputfilename, outputfilename)
hexbin(inputfilename, outputfilename)
iÿÿÿÿNtbinhexthexbintErrorcBseZRS((t__name__t
__module__(((s"/usr/local/lib/python2.5/binhex.pyRsii€i@i(tFSSpectFInfo(topenrfcCst|ƒiƒ}tii|ƒ\}}t|dƒ}|iddƒ|iƒ}t|dƒ}|iddƒ|iƒ}||||fS(Ntrbiis*rb(	RtFSpGetFInfotostpathtsplittopentseekttellR(tnametfinfotdirtfiletfptdlentrlen((s"/usr/local/lib/python2.5/binhex.pytgetfileinfo3scGs,|p
d}nd|d}t||ƒS(Ns*rbt*i(R(Rtmode((s"/usr/local/lib/python2.5/binhex.pytopenrsrc?s
RcBseZd„ZRS(cCsd|_d|_d|_dS(Ns????i(tTypetCreatortFlags(tself((s"/usr/local/lib/python2.5/binhex.pyt__init__Ls		(RRR(((s"/usr/local/lib/python2.5/binhex.pyRKscCsÚtƒ}t|ƒ}t|ƒidƒ}xJ|D]9}|iƒo%|djpt|ƒdjoPq1q1Wd|_|iddƒ|iƒ}|iƒt	i
i|ƒ\}}|iddd	ƒ}|||dfS(
Nit itTEXTiit:t-i(
RR
treadtisspacetordRRRtcloseR
RRtreplace(RRRtdatatctdsizeRR((s"/usr/local/lib/python2.5/binhex.pyRQs	.		
RcBs,eZd„Zd„Zd„Zd„ZRS(cGsdS(N((Rtargs((s"/usr/local/lib/python2.5/binhex.pyRcscGsdS(Nt((RR,((s"/usr/local/lib/python2.5/binhex.pyR$fscGsdS(N((RR,((s"/usr/local/lib/python2.5/binhex.pytwriteiscCsdS(N((R((s"/usr/local/lib/python2.5/binhex.pyR'ls(RRRR$R.R'(((s"/usr/local/lib/python2.5/binhex.pyRbs			t_HqxcoderenginecBs2eZdZd„Zd„Zd„Zd„ZRS(s(Write data to the coder in 3-byte chunkscCs,||_d|_d|_td|_dS(NR-i(tofpR)thqxdatatLINELENtlinelen(RR0((s"/usr/local/lib/python2.5/binhex.pyRrs			cCsƒ|i||_t|iƒ}|dd}|i| }|i||_|pdSn|iti|ƒ|_|idƒdS(Nii(R)tlenR1tbinasciitb2a_hqxt_flush(RR)tdatalenttodo((s"/usr/local/lib/python2.5/binhex.pyR.xs
cCs›d}x\|t|iƒ|ijo>||i}|ii|i||!dƒt|_|}q	W|i||_|o|ii|idƒndS(Nis
s:
(R4R1R3R0R.R2(Rtforcetfirsttlast((s"/usr/local/lib/python2.5/binhex.pyR7ƒs
	cCsN|io |iti|iƒ|_n|idƒ|iiƒ|`dS(Ni(R)R1R5R6R7R0R'(R((s"/usr/local/lib/python2.5/binhex.pyR'Žs

 

(RRt__doc__RR.R7R'(((s"/usr/local/lib/python2.5/binhex.pyR/os
			t_RlecoderenginecBs)eZdZd„Zd„Zd„ZRS(s4Write data to the RLE-coder in suitably large chunkscCs||_d|_dS(NR-(R0R)(RR0((s"/usr/local/lib/python2.5/binhex.pyR™s	cCs]|i||_t|iƒtjodSnti|iƒ}|ii|ƒd|_dS(NR-(R)R4tREASONABLY_LARGER5trlecode_hqxR0R.(RR)trledata((s"/usr/local/lib/python2.5/binhex.pyR.scCsG|io&ti|iƒ}|ii|ƒn|iiƒ|`dS(N(R)R5R@R0R.R'(RRA((s"/usr/local/lib/python2.5/binhex.pyR'¥s


(RRR=RR.R'(((s"/usr/local/lib/python2.5/binhex.pyR>–s		tBinHexcBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(c
Csî|\}}}}t|ƒtdƒjoI|}t|dƒ}tidjo t|ƒ}|iddƒqtn|idƒt|ƒ}	t|	ƒ|_	d|_
|djo
tƒ}n||_
||_|i||ƒt|_dS(NR-twtmactBnHqR!s0(This file must be converted with BinHex 4.0)

:i(ttypeR
R
RRtSetCreatorTypeR.R/R>R0tcrctNoneRRRt
_writeinfot_DID_HEADERtstate(
Rt.1R0RRRRtofnametfssthqxer((s"/usr/local/lib/python2.5/binhex.pyR­s"
	

		c	Cs§t|ƒ}|djo
td‚nt|ƒ|d}|i|i}tid|iƒ}tid|i|i	ƒ}||||}|i
|ƒ|iƒdS(Ni?sFilename too longts>hs>ii(R4RtchrRRtstructtpackRRRt_writet	_writecrc(	RRRtnltdtd2td3td4tinfo((s"/usr/local/lib/python2.5/binhex.pyRJ¿s


cCs,ti||iƒ|_|ii|ƒdS(N(R5tcrc_hqxRHR0R.(RR)((s"/usr/local/lib/python2.5/binhex.pyRUÍscCsL|idjo
d}nd}|iiti||iƒƒd|_dS(Nis>hs>H(RHR0R.RSRT(Rtfmt((s"/usr/local/lib/python2.5/binhex.pyRVÑs

cCsD|itjo
td‚n|it|ƒ|_|i|ƒdS(NsWriting data at the wrong time(RLRKRRR4RU(RR)((s"/usr/local/lib/python2.5/binhex.pyR.Ûs
cCs>|idjotd|if‚n|iƒt|_dS(NisIncorrect data size, diff=%r(RRRRVt	_DID_DATARL(R((s"/usr/local/lib/python2.5/binhex.pyt
close_dataás
cCsb|itjo|iƒn|itjo
td‚n|it|ƒ|_|i|ƒdS(Ns'Writing resource data at the wrong time(RLR_R`RRR4RU(RR)((s"/usr/local/lib/python2.5/binhex.pyt
write_rsrcçs
cCsŒ|itjo|iƒn|itjo
td‚n|idjotd|if‚n|iƒ|iiƒd|_|`dS(NsClose at the wrong timeis$Incorrect resource-datasize, diff=%r(	RLR_R`RRRVR0R'RI(R((s"/usr/local/lib/python2.5/binhex.pyR'ïs


	(
RRRRJRURVR.R`RaR'(((s"/usr/local/lib/python2.5/binhex.pyRB¬s				
			cCsÁt|ƒ}t||ƒ}t|dƒ}x+|idƒ}|pPn|i|ƒq-|iƒ|iƒt|dƒ}x+|idƒ}|pPn|i|ƒq~|iƒ|iƒdS(s@(infilename, outfilename) - Create binhex-encoded copy of a fileRiôN(	RRBR
R$R.R`R'RRa(tinptoutRR0tifpRX((s"/usr/local/lib/python2.5/binhex.pyRüs$


t_HqxdecoderenginecBs)eZdZd„Zd„Zd„ZRS(s*Read data via the decoder in 4-byte chunkscCs||_d|_dS(Ni(Rdteof(RRd((s"/usr/local/lib/python2.5/binhex.pyRs	cCsd}|}xî|djoà|io|Sn|ddd}|ii|ƒ}xiyti|ƒ\}|_PWntij
onX|iidƒ}|p
td‚n||}qU||}|t|ƒ}|o|io
td‚qqW|S(s&Read at least wtd bytes (or until EOF)R-iiiiisPremature EOF on binhex file(RfRdR$R5ta2b_hqxt
IncompleteRR4(RttotalwtdtdecdatatwtdR)t
decdatacurtnewdata((s"/usr/local/lib/python2.5/binhex.pyR$s0




cCs|iiƒdS(N(RdR'(R((s"/usr/local/lib/python2.5/binhex.pyR';s(RRR=RR$R'(((s"/usr/local/lib/python2.5/binhex.pyRes		"t_RledecoderenginecBs2eZdZd„Zd„Zd„Zd„ZRS(sRead data via the RLE-codercCs(||_d|_d|_d|_dS(NR-i(Rdt
pre_buffertpost_bufferRf(RRd((s"/usr/local/lib/python2.5/binhex.pyRAs			cCsU|t|iƒjo|i|t|iƒƒn|i| }|i||_|S(N(R4Rpt_fill(RRktrv((s"/usr/local/lib/python2.5/binhex.pyR$Gs

cCs1|i|ii|dƒ|_|iio-|iti|iƒ|_d|_dSnt|iƒ}|idtdtjo|d}nk|idtjo|d}nI|idtdjo|d}n#|idtjon|d	}|iti|i| ƒ|_|i||_dS(
NiR-iýÿÿÿRQiiÿÿÿÿiiþÿÿÿi(	RoRdR$RfRpR5t
rledecode_hqxR4tRUNCHAR(RRktmark((s"/usr/local/lib/python2.5/binhex.pyRqNs& 
	

cCs|iiƒdS(N(RdR'(R((s"/usr/local/lib/python2.5/binhex.pyR'qs(RRR=RR$RqR'(((s"/usr/local/lib/python2.5/binhex.pyRn>s
			#tHexBincBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(cCsÇt|ƒtdƒjot|ƒ}nxi|idƒ}|p
td‚n|djoq,n|djoPn|djo|iƒ}q,q,t|ƒ}t|ƒ|_d|_|i	ƒdS(NR-isNo binhex data founds
R"s
i(
RFR
R$RtreadlineReRnRdRHt_readheader(RRdtchtdummythqxifp((s"/usr/local/lib/python2.5/binhex.pyRus 



	cCs.|ii|ƒ}ti||iƒ|_|S(N(RdR$R5R]RH(RR4R)((s"/usr/local/lib/python2.5/binhex.pyt_readscCsmtid|iidƒƒdd@}|id@|_||ijotd|i|f‚nd|_dS(Ns>hiiiÿÿsCRC error, computed %x, read %x(RStunpackRdR$RHR(Rtfilecrc((s"/usr/local/lib/python2.5/binhex.pyt	_checkcrc’s&c	Csú|idƒ}|it|ƒƒ}|idƒ}|iƒ|dd!}|dd!}tid|dd!ƒd}tid	|dd
!ƒd|_tid	|d
d!ƒd|_||_tƒ|_||i_	||i_
||i_t|_
dS(Niiiii	s>hiis>liiii	iii(R|R&RRSR}RRtFNameRRRRRKRL(RR4tfnametrestRFtcreatortflags((s"/usr/local/lib/python2.5/binhex.pyRxœs


  	cGsŸ|itjo
td‚n|o |d}t||iƒ}n
|i}d}x5t|ƒ|jo!||i|t|ƒƒ}qVW|i||_|S(NsRead data at wrong timeiR-(RLRKRtminRR4R|(RtnRr((s"/usr/local/lib/python2.5/binhex.pyR$°s

	"cCsT|itjo
td‚n|io|i|iƒ}n|iƒt|_dS(Nsclose_data at wrong time(RLRKRRR|RR_(RRz((s"/usr/local/lib/python2.5/binhex.pyR`¾s


cGsˆ|itjo|iƒn|itjo
td‚n|o |d}t||iƒ}n
|i}|i||_|i|ƒS(Ns Read resource data at wrong timei(RLRKR`R_RR…RR|(RR†((s"/usr/local/lib/python2.5/binhex.pyt	read_rsrcÆs

	cCsD|io|i|iƒ}n|iƒt|_|iiƒdS(N(RR‡Rt	_DID_RSRCRLRdR'(RRz((s"/usr/local/lib/python2.5/binhex.pyR'Ós


	(
RRRR|RRxR$R`R‡R'(((s"/usr/local/lib/python2.5/binhex.pyRvts			
				
cCsst|ƒ}|i}|p
|i}ntidjot|ƒ}|iƒ}nt|dƒ}x+|idƒ}|pPn|i	|ƒqg|i
ƒ|iƒ|idƒ}|oXt
|dƒ}|i	|ƒx+|idƒ}|pPn|i	|ƒqÛ|i
ƒntidjoA|iƒ}|i|_|i|_|i|_|i|ƒn|i
ƒdS(s0(infilename, outfilename) - Decode binhexed fileRDtwbiôN(RvRR€R
RRtas_pathnameR
R$R.R'R`R‡RtGetFInfoRRRtSetFInfo(RbRcRdRtofssR0RXtnfinfo((s"/usr/local/lib/python2.5/binhex.pyRÚs@	



cCstidjoIddk}|idƒ\}}|ptidƒn|iƒ}ntid}t||dƒt	|d|dƒtidƒdS(NRDiÿÿÿÿsFile to convert:iis.hqxs.viahqx(
R
Rtmacfst
PromptGetFiletsystexitRŠtargvRR(RROtokR((s"/usr/local/lib/python2.5/binhex.pyt_tests
t__main__((((((((("R=R‘R
RSR5t__all__t	ExceptionRtrangeRKR_RˆR?R2RRRttCarbon.FileRRtMacOSRRRtImportErrorR/R>RBRReRnRvRR•R(((s"/usr/local/lib/python2.5/binhex.pys<module>s<	
	
'P	,6f	&	


Man Man