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/cmp.pyo
mò
‚=5Dc@s7dZdkZhZdd„Zd„Zd„ZdS(sgEfficiently compare files, boolean outcome only (equal / not equal).

Tricks (used in this order):
    - 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
Nic	Cstti|ƒƒtti|ƒƒ}}|ddjp|ddjodSn|o||jodSn|d |d jodSn||f}y9t	|\}}}||jo||jo|SnWnt
j
onXt||ƒ}|||ft	|<|S(s¥Compare two files, use the cache if possible.
    Return 1 for identical files, 0 for different.
    Raise exceptions if either file could not be statted, read, etc.iiiiN(tsigtoststattf1tf2ts1ts2tshallowtkeytcachetcs1tcs2toutcometKeyErrortdo_cmp(	RRRRRRRR
R((t#/usr/lib64/python2.4/lib-old/cmp.pytcmps$+"cCs/|dd}|d}|d}|||fS(s§Return signature (i.e., type, size, mtime) from raw stat data
    0-5: st_mode, st_ino, st_dev, st_nlink, st_uid, st_gid
    6-9: st_size, st_atime, st_mtime, st_ctimeiiiiN(tstttypetsizetmtime(RRRR((RR-s


cCsvdd}t|dƒ}t|dƒ}xG|i|ƒ}|i|ƒ}||jodSn|pdSq+q+WdS(sCompare two files, really.iitrbiiN(	tbufsizetopenRtfp1Rtfp2treadtb1tb2(RRRRRRR((RR6s

(t__doc__RR	RRR(RR	RRR((Rt?s
			

Anon7 - 2021