MOON
Server: Apache
System: Linux vps.thepromohut.com 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686
User: caretrak (507)
PHP: 5.2.10
Disabled: NONE
Upload Files
File: //usr/lib/python2.4/lib-old/cmpcache.pyo
mò
‚=5Dc@sGdZdkZdkTdkZhZdd„Zd„Zd„ZdS(s­Efficiently compare files, boolean outcome only (equal / not equal).

Tricks (used in this order):
    - Use the statcache module to avoid statting files more than once
    - Files with identical type, size & mtime are assumed to be clones
    - Files with different type or size cannot be identical
    - We keep a cache of outcomes of earlier comparisons
    - We don't fork a process to run 'cmp' but read the files ourselves
N(t*ic	Cs
tti|ƒƒtti|ƒƒ}}t|dƒpt|dƒodSn|o||jodSn|d |d jodSn|d|}t
i|ƒo9t
|\}}}||jo||jo|Sqçnt||ƒ}|||ft
|<|S(sßCompare two files, use the cache if possible.
    May raise os.error if a stat or open of either fails.
    Return 1 for identical files, 0 for different.
    Raise exceptions if either file could not be statted, read, etc.iiit N(tsigt	statcachetstattf1tf2ts1ts2tS_ISREGtshallowtkeytcachethas_keytcs1tcs2toutcometdo_cmp(	RRR
RRRRRR((t&/usr/lib/python2.4/lib-old/cmpcache.pytcmps +$cCst|tƒ|t|tfS(s>Return signature (i.e., type, size, mtime) from raw stat data.N(tS_IFMTtsttST_MODEtST_SIZEtST_MTIME(R((RR2scCsvdd}t|dƒ}t|dƒ}xG|i|ƒ}|i|ƒ}||jodSn|pdSq+q+WdS(sCompare two files, really.iitrbiiN(	tbufsizetopenRtfp1Rtfp2treadtb1tb2(RRRRR RR((RR6s

(t__doc__tosRRRRRR(RRRRR"R((Rt?	s