/usr/lib/python3.10/__pycache__
NameSizeModeActions
abc.cpython-310.pyc67510644editdlrm
aifc.cpython-310.pyc246850644editdlrm
antigravity.cpython-310.pyc8220644editdlrm
argparse.cpython-310.pyc635390644editdlrm
ast.cpython-310.pyc557390644editdlrm
asynchat.cpython-310.pyc70250644editdlrm
asyncore.cpython-310.pyc160020644editdlrm
base64.cpython-310.pyc171620644editdlrm
bdb.cpython-310.pyc258320644editdlrm
binhex.cpython-310.pyc128700644editdlrm
bisect.cpython-310.pyc25880644editdlrm
bz2.cpython-310.pyc108700644editdlrm
calendar.cpython-310.pyc263030644editdlrm
cgi.cpython-310.pyc267230644editdlrm
cgitb.cpython-310.pyc99980644editdlrm
chunk.cpython-310.pyc48600644editdlrm
cmd.cpython-310.pyc127070644editdlrm
code.cpython-310.pyc99570644editdlrm
codecs.cpython-310.pyc332190644editdlrm
codeop.cpython-310.pyc55950644editdlrm
colorsys.cpython-310.pyc32650644editdlrm
compileall.cpython-310.pyc127330644editdlrm
configparser.cpython-310.pyc454580644editdlrm
contextlib.cpython-310.pyc208950644editdlrm
contextvars.cpython-310.pyc2460644editdlrm
copy.cpython-310.pyc69960644editdlrm
copyreg.cpython-310.pyc46830644editdlrm
cProfile.cpython-310.pyc51130644editdlrm
crypt.cpython-310.pyc35500644editdlrm
csv.cpython-310.pyc117980644editdlrm
dataclasses.cpython-310.pyc265780644editdlrm
datetime.cpython-310.pyc565330644editdlrm
decimal.cpython-310.pyc3620644editdlrm
difflib.cpython-310.pyc589050644editdlrm
dis.cpython-310.pyc156560644editdlrm
doctest.cpython-310.pyc761750644editdlrm
enum.cpython-310.pyc260630644editdlrm
filecmp.cpython-310.pyc87490644editdlrm
fileinput.cpython-310.pyc140720644editdlrm
fnmatch.cpython-310.pyc42440644editdlrm
fractions.cpython-310.pyc186000644editdlrm
ftplib.cpython-310.pyc290340644editdlrm
functools.cpython-310.pyc283350644editdlrm
genericpath.cpython-310.pyc39070644editdlrm
getopt.cpython-310.pyc63390644editdlrm
getpass.cpython-310.pyc42100644editdlrm
gettext.cpython-310.pyc182210644editdlrm
glob.cpython-310.pyc58520644editdlrm
graphlib.cpython-310.pyc76160644editdlrm
gzip.cpython-310.pyc185460644editdlrm
hashlib.cpython-310.pyc68450644editdlrm
heapq.cpython-310.pyc138650644editdlrm
hmac.cpython-310.pyc69730644editdlrm
imaplib.cpython-310.pyc423120644editdlrm
imghdr.cpython-310.pyc39050644editdlrm
imp.cpython-310.pyc97860644editdlrm
inspect.cpython-310.pyc851530644editdlrm
io.cpython-310.pyc36630644editdlrm
ipaddress.cpython-310.pyc626700644editdlrm
keyword.cpython-310.pyc9270644editdlrm
linecache.cpython-310.pyc41420644editdlrm
locale.cpython-310.pyc461540644editdlrm
lzma.cpython-310.pyc121000644editdlrm
mailbox.cpython-310.pyc600910644editdlrm
mailcap.cpython-310.pyc73200644editdlrm
mimetypes.cpython-310.pyc176190644editdlrm
modulefinder.cpython-310.pyc161660644editdlrm
netrc.cpython-310.pyc39330644editdlrm
nntplib.cpython-310.pyc316230644editdlrm
ntpath.cpython-310.pyc147040644editdlrm
nturl2path.cpython-310.pyc17470644editdlrm
numbers.cpython-310.pyc118660644editdlrm
opcode.cpython-310.pyc54470644editdlrm
operator.cpython-310.pyc135080644editdlrm
optparse.cpython-310.pyc477540644editdlrm
os.cpython-310.pyc315990644editdlrm
pathlib.cpython-310.pyc420520644editdlrm
pdb.cpython-310.pyc474400644editdlrm
pickle.cpython-310.pyc468820644editdlrm
pickletools.cpython-310.pyc677600644editdlrm
pipes.cpython-310.pyc77690644editdlrm
pkgutil.cpython-310.pyc183610644editdlrm
platform.cpython-310.pyc274290644editdlrm
plistlib.cpython-310.pyc237650644editdlrm
poplib.cpython-310.pyc135730644editdlrm
posixpath.cpython-310.pyc105600644editdlrm
pprint.cpython-310.pyc178750644editdlrm
profile.cpython-310.pyc143910644editdlrm
pstats.cpython-310.pyc236210644editdlrm
pty.cpython-310.pyc41430644editdlrm
pyclbr.cpython-310.pyc97750644editdlrm
pydoc.cpython-310.pyc856450644editdlrm
py_compile.cpython-310.pyc73390644editdlrm
queue.cpython-310.pyc107920644editdlrm
quopri.cpython-310.pyc57940644editdlrm
random.cpython-310.pyc227480644editdlrm
re.cpython-310.pyc142270644editdlrm
reprlib.cpython-310.pyc52500644editdlrm
rlcompleter.cpython-310.pyc59540644editdlrm
runpy.cpython-310.pyc94110644editdlrm
sched.cpython-310.pyc61150644editdlrm
secrets.cpython-310.pyc21750644editdlrm
selectors.cpython-310.pyc171050644editdlrm
shelve.cpython-310.pyc94920644editdlrm
shlex.cpython-310.pyc77820644editdlrm
shutil.cpython-310.pyc385360644editdlrm
signal.cpython-310.pyc29350644editdlrm
site.cpython-310.pyc179220644editdlrm
sitecustomize.cpython-310.pyc2250644editdlrm
smtpd.cpython-310.pyc261470644editdlrm
smtplib.cpython-310.pyc357660644editdlrm
sndhdr.cpython-310.pyc69620644editdlrm
socket.cpython-310.pyc289630644editdlrm
socketserver.cpython-310.pyc253470644editdlrm
sre_compile.cpython-310.pyc151940644editdlrm
sre_constants.cpython-310.pyc63570644editdlrm
sre_parse.cpython-310.pyc217550644editdlrm
ssl.cpython-310.pyc452710644editdlrm
stat.cpython-310.pyc42730644editdlrm
statistics.cpython-310.pyc370510644editdlrm
string.cpython-310.pyc71020644editdlrm
stringprep.cpython-310.pyc170750644editdlrm
struct.cpython-310.pyc3070644editdlrm
subprocess.cpython-310.pyc447410644editdlrm
sunau.cpython-310.pyc164820644editdlrm
symtable.cpython-310.pyc128350644editdlrm
sysconfig.cpython-310.pyc181510644editdlrm
tabnanny.cpython-310.pyc69500644editdlrm
tarfile.cpython-310.pyc715780644editdlrm
telnetlib.cpython-310.pyc185060644editdlrm
tempfile.cpython-310.pyc273390644editdlrm
textwrap.cpython-310.pyc138120644editdlrm
this.cpython-310.pyc12640644editdlrm
threading.cpython-310.pyc449690644editdlrm
timeit.cpython-310.pyc117690644editdlrm
token.cpython-310.pyc27380644editdlrm
tokenize.cpython-310.pyc171940644editdlrm
trace.cpython-310.pyc198700644editdlrm
traceback.cpython-310.pyc217120644editdlrm
tracemalloc.cpython-310.pyc175250644editdlrm
tty.cpython-310.pyc10790644editdlrm
turtle.cpython-310.pyc1288570644editdlrm
types.cpython-310.pyc95250644editdlrm
typing.cpython-310.pyc852770644editdlrm
uu.cpython-310.pyc38670644editdlrm
uuid.cpython-310.pyc224980644editdlrm
warnings.cpython-310.pyc136460644editdlrm
wave.cpython-310.pyc175940644editdlrm
weakref.cpython-310.pyc203430644editdlrm
webbrowser.cpython-310.pyc174630644editdlrm
xdrlib.cpython-310.pyc78800644editdlrm
zipapp.cpython-310.pyc60130644editdlrm
zipfile.cpython-310.pyc618450644editdlrm
zipimport.cpython-310.pyc170330644editdlrm
_aix_support.cpython-310.pyc28790644editdlrm
_bootsubprocess.cpython-310.pyc22940644editdlrm
_collections_abc.cpython-310.pyc329250644editdlrm
_compat_pickle.cpython-310.pyc58720644editdlrm
_compression.cpython-310.pyc45120644editdlrm
_distutils_system_mod.cpython-310.pyc54220644editdlrm
_markupbase.cpython-310.pyc75720644editdlrm
_osx_support.cpython-310.pyc115350644editdlrm
_pydecimal.cpython-310.pyc1577360644editdlrm
_pyio.cpython-310.pyc736540644editdlrm
_py_abc.cpython-310.pyc46830644editdlrm
_sitebuiltins.cpython-310.pyc35470644editdlrm
_strptime.cpython-310.pyc159450644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc353850644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc353790644editdlrm
_threading_local.cpython-310.pyc65390644editdlrm
_weakrefset.cpython-310.pyc76080644editdlrm
__future__.cpython-310.pyc41310644editdlrm
__phello__.foo.cpython-310.pyc1300644editdlrm
Edit: /usr/lib/python3.10/__pycache__/filecmp.cpython-310.pyc (8749B)
o …9jÂ'ã@s²dZddlZddlZddlmZddlmZgd¢ZiZdZ gd¢Z dd „Z dd d „Z d d„Z dd„ZGdd„dƒZddd„Zee fdd„Zdd„Zdd„ZedkrWeƒdSdS)z³Utilities for comparing files and directories. Classes: dircmp Functions: cmp(f1, f2, shallow=True) -> int cmpfiles(a, b, common) -> ([], [], []) clear_cache() éN)Ú filterfalse)Ú GenericAlias)Ú clear_cacheÚcmpÚdircmpÚcmpfilesÚDEFAULT_IGNORESi )ÚRCSÚCVSÚtagsz.gitz.hgz.bzrÚ_darcsÚ __pycache__cCs t ¡dS)zClear the filecmp cache.N)Ú_cacheÚclear©rrú/usr/lib/python3.10/filecmp.pyrs rTcCsªtt |¡ƒ}tt |¡ƒ}|dtjks|dtjkrdS|r&||kr&dS|d|dkr0dSt ||||f¡}|durSt||ƒ}ttƒdkrKtƒ|t||||f<|S)aMCompare two files. Arguments: f1 -- First file name f2 -- Second file name shallow -- treat files as identical if their stat signatures (type, size, mtime) are identical. Otherwise, files are considered different if their sizes or contents differ. [default: True] Return value: True if the files are the same, False otherwise. This function uses a cache for past comparisons and the results, with cache entries invalidated if their stat information changes. The cache may be cleared by calling clear_cache(). rFTéNéd) Ú_sigÚosÚstatÚS_IFREGrÚgetÚ_do_cmpÚlenr)Úf1Úf2ÚshallowÚs1Ús2Úoutcomerrrrs   rcCst |j¡|j|jfS©N)rÚS_IFMTÚst_modeÚst_sizeÚst_mtime)ÚstrrrrFs þrc Cs°t}t|dƒG}t|dƒ1} | |¡}| |¡}||kr, WdƒWdƒdS|s= WdƒWdƒdSq1sAwYWdƒdS1sQwYdS)NÚrbTF)ÚBUFSIZEÚopenÚread)rrÚbufsizeÚfp1Úfp2Úb1Úb2rrrrKs  ûù4ÿrc@s’eZdZdZddd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z ee eeeeeeeeeeed Zdd„ZeeƒZdS)ra®A class that manages the comparison of 2 directories. dircmp(a, b, ignore=None, hide=None) A and B are directories. IGNORE is a list of names to ignore, defaults to DEFAULT_IGNORES. HIDE is a list of names to hide, defaults to [os.curdir, os.pardir]. High level usage: x = dircmp(dir1, dir2) x.report() -> prints a report on the differences between dir1 and dir2 or x.report_partial_closure() -> prints report on differences between dir1 and dir2, and reports on common immediate subdirectories. x.report_full_closure() -> like report_partial_closure, but fully recursive. Attributes: left_list, right_list: The files in dir1 and dir2, filtered by hide and ignore. common: a list of names in both dir1 and dir2. left_only, right_only: names only in dir1, dir2. common_dirs: subdirectories in both dir1 and dir2. common_files: files in both dir1 and dir2. common_funny: names in both dir1 and dir2 where the type differs between dir1 and dir2, or the name is not stat-able. same_files: list of identical files. diff_files: list of filenames which differ. funny_files: list of files which could not be compared. subdirs: a dictionary of dircmp instances (or MyDirCmp instances if this object is of type MyDirCmp, a subclass of dircmp), keyed by names in common_dirs. NcCsF||_||_|durtjtjg|_n||_|durt|_dS||_dSr!)ÚleftÚrightrÚcurdirÚpardirÚhiderÚignore)ÚselfÚaÚbr5r4rrrÚ__init__|s  zdircmp.__init__cCsPtt |j¡|j|jƒ|_tt |j¡|j|jƒ|_|j  ¡|j  ¡dSr!) Ú_filterrÚlistdirr0r4r5Ú left_listr1Ú right_listÚsort©r6rrrÚphase0ˆs  ÿ  ÿ z dircmp.phase0cCsŠttttjj|jƒ|jƒƒ}ttttjj|jƒ|jƒƒ}tt|j t |j |ƒƒƒ|_ tt|j t |j |ƒƒƒ|_tt|j t |j |ƒƒƒ|_dSr!)ÚdictÚzipÚmaprÚpathÚnormcaser<r=ÚlistÚ __getitem__ÚfilterÚ __contains__ÚcommonrÚ left_onlyÚ right_only)r6r7r8rrrÚphase1s z dircmp.phase1c Csg|_g|_g|_|jD]x}tj |j|¡}tj |j|¡}d}zt  |¡}Wn t y2d}Ynwzt  |¡}Wn t yEd}Ynw|r~t   |j ¡}t   |j ¡}||kr_|j  |¡q t  |¡rk|j  |¡q t  |¡rw|j  |¡q |j  |¡q |j  |¡q dS)Nrr)Ú common_dirsÚ common_filesÚ common_funnyrJrrDÚjoinr0r1rÚOSErrorr"r#ÚappendÚS_ISDIRÚS_ISREG) r6ÚxÚa_pathÚb_pathÚokÚa_statÚb_statÚa_typeÚb_typerrrÚphase2—s:  þ þ    äz dircmp.phase2cCs&t|j|j|jƒ}|\|_|_|_dSr!)rr0r1rOÚ same_filesÚ diff_filesÚ funny_files)r6ÚxxrrrÚphase3ºsz dircmp.phase3cCsPi|_|jD]}tj |j|¡}tj |j|¡}| |||j|j ¡|j|<qdSr!) ÚsubdirsrNrrDrQr0r1Ú __class__r5r4)r6rVÚa_xÚb_xrrrÚphase4¾s  ýz dircmp.phase4cCs$| ¡|j ¡D]}| ¡q dSr!)rhrdÚvaluesÚphase4_closure©r6ÚsdrrrrjÉs ÿzdircmp.phase4_closurecCsètd|j|jƒ|jr|j ¡td|jd|jƒ|jr*|j ¡td|jd|jƒ|jr8|j ¡td|jƒ|jrF|j ¡td|jƒ|jrT|j ¡td|jƒ|j rb|j  ¡td|j ƒ|j rr|j  ¡td|j ƒdSdS) NÚdiffzOnly inú:zIdentical files :zDiffering files :zTrouble with common files :zCommon subdirectories :zCommon funny cases :) Úprintr0r1rKr>rLr_r`rarNrPr?rrrÚreportÎs.           þz dircmp.reportcCs*| ¡|j ¡D] }tƒ| ¡q dSr!)rprdrirorkrrrÚreport_partial_closureçó  þzdircmp.report_partial_closurecCs*| ¡|j ¡D] }tƒ| ¡q dSr!)rprdriroÚreport_full_closurerkrrrrsírrzdircmp.report_full_closure) rdr_r`rarNrOrPrJrKrLr<r=cCs*||jvr t|ƒ‚|j||ƒt||ƒSr!)Ú methodmapÚAttributeErrorÚgetattr)r6ÚattrrrrÚ __getattr__ùs  zdircmp.__getattr__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r9r@rMr^rcrhrjrprqrsrArtrxÚ classmethodrÚ__class_getitem__rrrrrXs( # # ü rcCsJgggf}|D]}tj ||¡}tj ||¡}|t|||ƒ |¡q|S)a]Compare common files in two directories. a, b -- directory names common -- list of file names found in both directories shallow -- if true, do comparison based solely on stat() information Returns a tuple of three lists: files that compare equal files that are different filenames that aren't regular files. )rrDrQÚ_cmprS)r7r8rJrÚresrVÚaxÚbxrrrrs rcCs*z |||||ƒƒ WStyYdSw)Né)rR)r7r8ÚshÚabsrrrrrs  ÿrcCstt|j|ƒƒSr!)rFrrI)ÚflistÚskiprrrr:&sr:cCstddl}ddl}| |jdd…d¡\}}t|ƒdkr!| dd¡‚t|d|dƒ}d|vr4| ¡dS| ¡dS)NrrÚrrƒzneed exactly two args)z-rÚ)ÚsysÚgetoptÚargvrÚ GetoptErrorrrsrp)rŠr‹ÚoptionsÚargsÚddrrrÚdemo,s    r‘Ú__main__)T)r|rrÚ itertoolsrÚtypesrÚ__all__rr(rrrrrrrr…rr:r‘ryrrrrÚs,    (  +  ÿ