|
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 : /proc/21572/root/usr/lib64/python2.4/ |
Upload File : |
mς
=5Dc @ sί d Z d k Z d k Z d k Z d k l Z l Z l Z l Z d d d g Z h Z
d d Z d d d Z
d
Z d Z d f d YZ d d d
Z e e
d Z d Z d Z e d j o e n d S( s Utilities for comparing files and directories.
Classes:
dircmp
Functions:
cmp(f1, f2, shallow=1) -> int
cmpfiles(a, b, common) -> ([], [], [])
N( s ifilters ifilterfalses imaps izipt cmpt dircmpt cmpfilesi i i c C s | d j o t i d t n t t i | } t t i | } | d t i j p | d t i j o t
Sn | o | | j o t Sn | d | d j o t
Sn t i | | f } | o# | | f | d j o | d Sn t | | } | | | f t | | f <| S( s½ Compare two files.
Arguments:
f1 -- First file name
f2 -- Second file name
shallow -- Just check stat signature (do not read the files).
defaults to 1.
use_statcache -- obsolete argument.
Return value:
True if the files are the same, False otherwise.
This function uses a cache for past comparisons and the results,
with a cache invalidation mechanism relying on stale signatures.
s$ use_statcache argument is deprecatedi i i N( t
use_statcachet Nonet warningst warnt DeprecationWarningt _sigt ost statt f1t s1t f2t s2t S_IFREGt Falset shallowt Truet _cachet gett resultt _do_cmpt outcome( R R
R R R R R R ( ( t /usr/lib64/python2.4/filecmp.pyR s$
(c C s t i | i | i | i f S( N( R
t S_IFMTt stt st_modet st_sizet st_mtime( R ( ( R R @ s c C sy t } t | d } t | d } xN t oF | i | } | i | } | | j o t Sn | p t Sq' q' Wd S( Nt rb( t BUFSIZEt bufsizet openR t fp1R
t fp2R t readt b1t b2R ( R R
R"