/snap/core22/2411/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.pyc289770644editdlrm
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.pyc424320644editdlrm
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.pyc136700644editdlrm
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.pyc706740644editdlrm
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.pyc170000644editdlrm
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: /snap/core22/2411/usr/lib/python3.10/__pycache__/trace.cpython-310.pyc (19870B)
o `wir@sdZddgZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl mZddlZdZGdddZd d Zd d ZGd ddZddZddZdddZddZGdddZddZedkryedSdS)aprogram/module to trace Python program or function execution Sample use, command line: trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs trace.py -t --ignore-dir '$prefix' spam.py eggs trace.py --trackcalls spam.py eggs Sample use, programmatically import sys # create a Trace object, telling it what to ignore, and whether to # do tracing or line-counting or both. tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,], trace=0, count=1) # run the new command using the given tracer tracer.run('main()') # make a report, placing output in /tmp r = tracer.results() r.write_results(show_missing=True, coverdir="/tmp") TraceCoverageResultsN) monotonicz#pragma NO COVERc@seZdZdddZddZdS)_IgnoreNcCs:|stnt||_|sgndd|D|_ddi|_dS)NcSsg|]}tj|qS)ospathnormpath.0drr/usr/lib/python3.10/trace.py Hsz$_Ignore.__init__..z)set_mods_dirs_ignore)selfmodulesdirsrrr __init__Fs z_Ignore.__init__cCs||jvr |j|S||jvrd|j|<dS|jD]}||dr*d|j|<dSq|dur6d|j|<dS|jD]}||tjrKd|j|<dSq9d|j|<dS)Nr.r)rr startswithrrsep)rfilename modulenamemodr rrr namesLs(          z _Ignore.namesNN)__name__ __module__ __qualname__rrrrrr rEs  rcCs tj|}tj|\}}|S),Return a plausible module name for the path.)rrbasenamesplitext)rbaserextrrr _modnamews r(cCstj|}d}tjD] }tj|}||r+|t|tjkr+t|t|kr+|}q |r9|t|dd}n|}tj|\}}|tjd}tj rT|tj d}tj |\}}| dS)r#rNr) rrnormcasesysrlenr splitdrivereplacealtsepr%lstrip)r comparepathlongestdirr&driverr'rrr _fullmodname~s"    r5c@s>eZdZ  dddZddZddZdd d Zdd d ZdS)rNc Cs||_|jdur i|_|j|_||_|jduri|_|j|_||_|jdur-i|_|j|_||_||_|jrz,t|jd}t |\}}}Wdn1sVwY| |j |||dWdSt t tfy}ztd|j|ftjdWYd}~dSd}~wwdS)Nrb)callerszSkipping counts file %r: %sfile)countscopycounter calledfuncsr7infileoutfileopenpickleloadupdate __class__OSErrorEOFError ValueErrorprintr+stderr)rr:r=r>r7r?ferrrrr rs:      zCoverageResults.__init__cCs|do |dS)z_Return True if the filename does not refer to a file we want to have reported. <>)rendswith)rrrrr is_ignored_filenamesz#CoverageResults.is_ignored_filenamec Csn|j}|j}|j}|j}|j}|j}|D]}||d||||<q|D]}d||<q%|D]}d||<q.dS)z.Merge in the data from another CoverageResultsrrN)r:r=r7get) rotherr:r=r7 other_countsother_calledfuncs other_callerskeyrrr rCs  zCoverageResults.updateTFc" Cs|jr ttd|j}t|D]\}}}td|||fq|jrhttdd}} t|jD]4\\} } } \} }}| |krNttd| d| }d} | | kr]| | kr]td| | } td| | ||fq3i}|jD]\}}||i}||<|j||f||<qmi}|D]\}}||rq|dr|d d }|d urt j t j |}t |}n|}t j |st |t|}|rt|}ni}t|}t j ||d }t|d }t|j\}}Wd n1swY||||||\}}|r|rtd ||}||||f||<q|r<|rz %s.%s -> %s.%sz.pycNz.coverr6dzlines cov% module (path)z%5d %3d%% %s (%s)wbrz"Can't save counts files because %sr8)!r=rHsortedr7r:rPitemsrOrNrrdirnameabspathr(existsmakedirsr5_find_executable_linenos linecachegetlinesjoinr@tokenizedetect_encodingreadlinewrite_results_fileintr?rAdumprEr+rI)"r show_missingsummarycoverdircallsrrfuncnamelastfile lastcfilepfilepmodpfunccfilecmodcfuncper_filelineno lines_hitsumscountr3lnotabsource coverpathfpencoding_n_hitsn_linespercentmrJrKrrr write_resultss               ( zCoverageResults.write_resultsc Csz t|d|d}Wnty'}ztd||ftjdWYd}~dSd}~wwd}d} |Jt|dD]9\} } | |vrN|d || | d7} |d7}n| |vr`t| vr`|d |d7}n|d || d q4Wd| |fS1s{wY| |fS) z'Return a coverage results file in path.wrz3trace: Could not open %r for writing: %s - skippingr8N)rrrrz%5d: z>>>>>> z ) r@rErHr+rI enumeratewritePRAGMA_NOCOVER expandtabs) rrlinesr{rxrr?rKrrrwlinerrr rf)s:     z"CoverageResults.write_results_file)NNNNN)TFNN)r r!r"rrOrCrrfrrrr rs  \cCs,i}t|D] \}}||vrd||<q|S)z:Return dict where keys are lines in the line number table.r)disfindlinestarts)codestrslinenosrrwrrr _find_lines_from_codeIs rcCs4t||}|jD]}t|r|t||q|S)zr?rignorer:pathtobasename donothingtrace _calledfuncs_callers _caller_cache start_time_timeglobaltrace_trackcallers globaltraceglobaltrace_countfuncsglobaltrace_ltlocaltrace_trace_and_count localtracelocaltrace_tracelocaltrace_count) rrzr countfuncs countcallers ignoremods ignoredirsr>r?timingrrr rs6       zTrace.__init__cCs ddl}|j}||||dS)Nr)__main____dict__runctx)rcmdrdictrrr runsz Trace.runc Cs|duri}|dur i}|jst|jt|jzt|||W|js2tdtddSdS|jsBtdtdwwr)r threadingsettracerr+r)rrglobalslocalsrrr rs       z Trace.runctxc OsPd}|js t|jz||i|}W|jstd|S|js'tdwwr)rr+rr)rfuncargskwresultrrr runfuncs   z Trace.runfuncc Cs|j}|j}|r t|}nd}|j}d}||jvr&|j|dur%|j|}nCd|j|<ddt|D}t|dkriddt|dD}t|dkriddt|dD} t| dkri| dj}||j|<|dursd||f}|||fS)NcSsg|] }t|r|qSr)r isfunction)r rJrrr r z1Trace.file_module_function_of..rcSsg|] }t|tr|qSr) isinstancerr rrr rrrcSsg|] }t|dr|qS) __bases__)hasattr)r rrrr rrz%s.%s) f_code co_filenamer(co_namergc get_referrersr,r ) rframerrrrmclsnamefuncsdictsclassesrrr file_module_function_ofs.           zTrace.file_module_function_ofcCs4|dkr||}||j}d|j||f<dSdS)zkHandler for call events. Adds information about who called who to the self._callers dict. callrN)rf_backr)rrwhyarg this_func parent_funcrrr rs   zTrace.globaltrace_trackcallerscCs$|dkr||}d|j|<dSdS)zoHandler for call events. Adds (filename, modulename, funcname) to the self._calledfuncs dict. rrN)rr)rrrrrrrr rs zTrace.globaltrace_countfuncscCsp|dkr6|j}|jdd}|r4t|}|dur0|j||}|s2|jr-td||jf|j SdSdSdSdS)zHandler for call events. If the code block being entered is to be ignored, returns `None', else returns self.localtrace. r__file__Nz! --- modulename: %s, funcname: %s) r f_globalsrPr(rrrrHrr)rrrrrrr ignore_itrrr rs"zTrace.globaltrace_ltcCs|dkr?|jj}|j}||f}|j|dd|j|<|jr*tdt|jddtj |}td||t ||fdd|j S) Nrrr%.2f r %s(%d): %sr))rrf_linenor:rPrrHrrrr$r`getliner)rrrrrrwrUbnamerrr r(s  z Trace.localtrace_trace_and_countcCsd|dkr/|jj}|j}|jrtdt|jddtj|}td||t ||fdd|j S)Nrrrrrr)) rrrrrHrrrr$r`rr)rrrrrrwrrrr r7s  zTrace.localtrace_tracecCs<|dkr|jj}|j}||f}|j|dd|j|<|jS)Nrrr)rrrr:rPr)rrrrrrwrUrrr rDs zTrace.localtrace_countcCst|j|j|j|j|jdS)N)r>r?r=r7)rr:r>r?rr)rrrr resultsLs z Trace.results) rrrrrrNNFr)r r!r"rrrrrrrrrrrrrrrr rs  2   )   c sddl}|}|jdddd|dd}|jdd d d d |jd dd dd |jddd dd |jddd dd |d}|}|jddd dd |jddd dd |jdddd |jd!d"d#d |jd$d%d d&d |jd'd(d d)d |jd*d+d d,d |d-d.}|jd/d0gd1d2|jd3d0gd4d2|jd5d d6d7d2|jd8d9d:d;|jd<|jd=d;|}|jrt d>t d?fd@dAdBdC|j D|_ fdDdC|jD|_|j r|j s| dEt|j |j dF}||j|j|jSt|j|j|j|jgs | dG|jr|js|jr| dH|jr+|js+| dI|jdur6| dJt|j|j|j|j|j |j|j |j |jdK }zk|jruddl}|j}||\} } } | jg|jt _!dL| j| j"| j#| ddM} n:|jg|jt _!t$j%&|jt j%d<t'(|j} t)| *|jdN} Wdn 1swY|jdLdddO} |+| | | Wn(t,y}zt -dPt j!d|fWYd}~nd}~wt.yYnw|/}|j0s||j|j|jdSdS)QNrz --versionversionz trace 2.0)actionrz Main optionsz(One of these (or --report) must be givenz-cz--count store_truezCount the number of times each line is executed and write the counts to .cover for each module executed, in the module's directory. See also --coverdir, --file, --no-report below.)rhelpz-tz--tracez3Print each line to sys.stdout before it is executedz-lz --listfuncszKeep track of which functions are executed at least once and write the results to sys.stdout after the program exits. Cannot be specified alongside --trace or --count.z-Tz --trackcallsz^Keep track of caller/called pairs and write the results to sys.stdout after the program exits. Modifiersz-rz--reportzGenerate a report from a counts file; does not execute any code. --file must specify the results file to read, which must have been created in a previous run with --count --file=FILEz-Rz --no-reportz^Do not generate the coverage report files. Useful if you want to accumulate over several runs.z-fz--filez+File to accumulate counts over several runs)rz-Cz --coverdirzDirectory where the report files go. The coverage report for . will be written to file //.coverz-mz --missingz?Annotate executable lines that were not executed with ">>>>>> "z-sz --summaryz\Write a brief summary for each file to sys.stdout. Can only be used with --count or --reportz-gz--timingzQPrefix each line with the time since the program started. Only used while tracingFilterszCan be specified multiple timesz--ignore-moduleappendzqIgnore the given module(s) and its submodules (if it is a package). Accepts comma separated list of module names.)rdefaultrz --ignore-dirzWIgnore files in the given directory (multiple directories can be joined by os.pathsep).z--moduleFzTrace a module. progname?zfile to run as main program)nargsr argumentszarguments to the programstdlib platstdlibcs4tjtj|}|dd}tj|S)Nz$prefixz $exec_prefix)rr expanduser expandvarsr.r )s) _exec_prefix_prefixrr parse_ignore_dirs zmain..parse_ignore_dircSs$g|]}|dD]}|q qS),)splitstrip)r rrrrr rs  zmain..cs&g|]}|tjD]}|q qSr)r rpathsep)r rr)r rr rs  z-r/--report requires -f/--file)r>r?zLmust specify one of --trace, --count, --report, --listfuncs, or --trackcallsz8cannot specify both --listfuncs and (--trace or --count)z3--summary can only be used with --count or --reportz3progname is missing: required with the main options)rrrrr>r?rr)r r __package__ __loader____spec__ __cached__r)rr rrzCannot run file %r because: %s)1argparseArgumentParser add_argumentadd_argument_groupadd_mutually_exclusive_group REMAINDER parse_args ignore_dir sysconfigget_path ignore_modulereportr9errorrrmissingrjrkanyrrz listfuncs trackcallsrrrmodulerunpy_get_module_detailsrrr+argvparentloaderrrr[io open_coderrrrEexit SystemExitr no_report)rparsergrp_grpoptsrtr$ module_namemod_namemod_specrglobsr~rKr)rrr r mainRs                        $r7rr)__doc____all__r)r`rr+rrrcrrrrAtimerrrrrr(r5rrrrr_rr7r rrrr s@ 20 O