/snap/core24/1587/usr/lib/python3.12/__pycache__
NameSizeModeActions
abc.cpython-312.pyc80550644editdlrm
aifc.cpython-312.pyc428630644editdlrm
antigravity.cpython-312.pyc10030644editdlrm
argparse.cpython-312.pyc1016820644editdlrm
ast.cpython-312.pyc1002790644editdlrm
base64.cpython-312.pyc244080644editdlrm
bdb.cpython-312.pyc373590644editdlrm
bisect.cpython-312.pyc36410644editdlrm
bz2.cpython-312.pyc151330644editdlrm
calendar.cpython-312.pyc396210644editdlrm
cgi.cpython-312.pyc402280644editdlrm
cgitb.cpython-312.pyc173320644editdlrm
chunk.cpython-312.pyc73100644editdlrm
cmd.cpython-312.pyc186190644editdlrm
code.cpython-312.pyc130510644editdlrm
codecs.cpython-312.pyc422740644editdlrm
codeop.cpython-312.pyc69160644editdlrm
colorsys.cpython-312.pyc46420644editdlrm
compileall.cpython-312.pyc204970644editdlrm
configparser.cpython-312.pyc635820644editdlrm
contextlib.cpython-312.pyc303760644editdlrm
contextvars.cpython-312.pyc2610644editdlrm
copy.cpython-312.pyc98000644editdlrm
copyreg.cpython-312.pyc74140644editdlrm
cProfile.cpython-312.pyc85930644editdlrm
crypt.cpython-312.pyc53610644editdlrm
csv.cpython-312.pyc177880644editdlrm
dataclasses.cpython-312.pyc446780644editdlrm
datetime.cpython-312.pyc4090644editdlrm
decimal.cpython-312.pyc4060644editdlrm
difflib.cpython-312.pyc754990644editdlrm
dis.cpython-312.pyc345600644editdlrm
doctest.cpython-312.pyc1056860644editdlrm
enum.cpython-312.pyc807080644editdlrm
filecmp.cpython-312.pyc146610644editdlrm
fileinput.cpython-312.pyc202800644editdlrm
fnmatch.cpython-312.pyc64950644editdlrm
fractions.cpython-312.pyc366670644editdlrm
ftplib.cpython-312.pyc426360644editdlrm
functools.cpython-312.pyc405060644editdlrm
genericpath.cpython-312.pyc68220644editdlrm
getopt.cpython-312.pyc83630644editdlrm
getpass.cpython-312.pyc68500644editdlrm
gettext.cpython-312.pyc221510644editdlrm
glob.cpython-312.pyc98410644editdlrm
graphlib.cpython-312.pyc103270644editdlrm
gzip.cpython-312.pyc320150644editdlrm
hashlib.cpython-312.pyc80870644editdlrm
heapq.cpython-312.pyc179560644editdlrm
hmac.cpython-312.pyc106980644editdlrm
imaplib.cpython-312.pyc628890644editdlrm
imghdr.cpython-312.pyc69440644editdlrm
inspect.cpython-312.pyc1334460644editdlrm
io.cpython-312.pyc41390644editdlrm
ipaddress.cpython-312.pyc907620644editdlrm
keyword.cpython-312.pyc10410644editdlrm
linecache.cpython-312.pyc64010644editdlrm
locale.cpython-312.pyc595360644editdlrm
lzma.cpython-312.pyc158550644editdlrm
mailbox.cpython-312.pyc1116180644editdlrm
mailcap.cpython-312.pyc111550644editdlrm
mimetypes.cpython-312.pyc241850644editdlrm
modulefinder.cpython-312.pyc279440644editdlrm
netrc.cpython-312.pyc89030644editdlrm
nntplib.cpython-312.pyc449390644editdlrm
ntpath.cpython-312.pyc260330644editdlrm
nturl2path.cpython-312.pyc30340644editdlrm
numbers.cpython-312.pyc139670644editdlrm
opcode.cpython-312.pyc147160644editdlrm
operator.cpython-312.pyc173640644editdlrm
optparse.cpython-312.pyc675460644editdlrm
os.cpython-312.pyc434740644editdlrm
pathlib.cpython-312.pyc620980644editdlrm
pdb.cpython-312.pyc849190644editdlrm
pickle.cpython-312.pyc761760644editdlrm
pickletools.cpython-312.pyc811280644editdlrm
pipes.cpython-312.pyc109140644editdlrm
pkgutil.cpython-312.pyc199590644editdlrm
platform.cpython-312.pyc416000644editdlrm
plistlib.cpython-312.pyc412860644editdlrm
poplib.cpython-312.pyc184460644editdlrm
posixpath.cpython-312.pyc182360644editdlrm
pprint.cpython-312.pyc294740644editdlrm
profile.cpython-312.pyc225400644editdlrm
pstats.cpython-312.pyc379220644editdlrm
pty.cpython-312.pyc73630644editdlrm
pyclbr.cpython-312.pyc148870644editdlrm
pydoc.cpython-312.pyc1429550644editdlrm
py_compile.cpython-312.pyc100780644editdlrm
queue.cpython-312.pyc147320644editdlrm
quopri.cpython-312.pyc93230644editdlrm
random.cpython-312.pyc331530644editdlrm
reprlib.cpython-312.pyc99090644editdlrm
rlcompleter.cpython-312.pyc82820644editdlrm
runpy.cpython-312.pyc143850644editdlrm
sched.cpython-312.pyc77350644editdlrm
secrets.cpython-312.pyc25560644editdlrm
selectors.cpython-312.pyc261280644editdlrm
shelve.cpython-312.pyc129130644editdlrm
shlex.cpython-312.pyc141620644editdlrm
shutil.cpython-312.pyc681130644editdlrm
signal.cpython-312.pyc44480644editdlrm
site.cpython-312.pyc290630644editdlrm
sitecustomize.cpython-312.pyc3000644editdlrm
smtplib.cpython-312.pyc482210644editdlrm
sndhdr.cpython-312.pyc107120644editdlrm
socket.cpython-312.pyc418170644editdlrm
socketserver.cpython-312.pyc342580644editdlrm
sre_compile.cpython-312.pyc6250644editdlrm
sre_constants.cpython-312.pyc6280644editdlrm
sre_parse.cpython-312.pyc6210644editdlrm
ssl.cpython-312.pyc630110644editdlrm
stat.cpython-312.pyc52310644editdlrm
statistics.cpython-312.pyc554230644editdlrm
string.cpython-312.pyc114820644editdlrm
stringprep.cpython-312.pyc251600644editdlrm
struct.cpython-312.pyc3250644editdlrm
subprocess.cpython-312.pyc791870644editdlrm
sunau.cpython-312.pyc254230644editdlrm
symtable.cpython-312.pyc187810644editdlrm
sysconfig.cpython-312.pyc300010644editdlrm
tabnanny.cpython-312.pyc121560644editdlrm
tarfile.cpython-312.pyc1233880644editdlrm
telnetlib.cpython-312.pyc284230644editdlrm
tempfile.cpython-312.pyc473390644editdlrm
textwrap.cpython-312.pyc182930644editdlrm
this.cpython-312.pyc14080644editdlrm
threading.cpython-312.pyc653460644editdlrm
timeit.cpython-312.pyc148640644editdlrm
token.cpython-312.pyc35570644editdlrm
tokenize.cpython-312.pyc247750644editdlrm
trace.cpython-312.pyc330240644editdlrm
traceback.cpython-312.pyc515230644editdlrm
tracemalloc.cpython-312.pyc269070644editdlrm
tty.cpython-312.pyc26680644editdlrm
turtle.cpython-312.pyc1846320644editdlrm
types.cpython-312.pyc149390644editdlrm
typing.cpython-312.pyc1418600644editdlrm
uu.cpython-312.pyc78160644editdlrm
uuid.cpython-312.pyc330070644editdlrm
warnings.cpython-312.pyc237920644editdlrm
wave.cpython-312.pyc320840644editdlrm
weakref.cpython-312.pyc313480644editdlrm
webbrowser.cpython-312.pyc263530644editdlrm
xdrlib.cpython-312.pyc118410644editdlrm
zipapp.cpython-312.pyc99770644editdlrm
zipimport.cpython-312.pyc244750644editdlrm
_aix_support.cpython-312.pyc47590644editdlrm
_collections_abc.cpython-312.pyc459120644editdlrm
_compat_pickle.cpython-312.pyc72210644editdlrm
_compression.cpython-312.pyc74970644editdlrm
_distutils_system_mod.cpython-312.pyc78180644editdlrm
_markupbase.cpython-312.pyc122790644editdlrm
_osx_support.cpython-312.pyc177310644editdlrm
_pydatetime.cpython-312.pyc941930644editdlrm
_pydecimal.cpython-312.pyc2278070644editdlrm
_pyio.cpython-312.pyc1102690644editdlrm
_pylong.cpython-312.pyc99830644editdlrm
_py_abc.cpython-312.pyc70540644editdlrm
_sitebuiltins.cpython-312.pyc47600644editdlrm
_strptime.cpython-312.pyc241160644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-312.pyc586510644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-312.pyc586450644editdlrm
_threading_local.cpython-312.pyc82950644editdlrm
_weakrefset.cpython-312.pyc117510644editdlrm
__future__.cpython-312.pyc47040644editdlrm
__hello__.cpython-312.pyc8700644editdlrm
Edit: /snap/core24/1587/usr/lib/python3.12/__pycache__/cmd.cpython-312.pyc (18619B)
Цi:ndZddlZddlZdgZdZej ej zdzZGddZy)a A generic class to build line-oriented command interpreters. Interpreters constructed with this class obey the following conventions: 1. End of file on input is processed as the command 'EOF'. 2. A command is parsed out of each line by collecting the prefix composed of characters in the identchars member. 3. A command `foo' is dispatched to a method 'do_foo()'; the do_ method is passed a single argument consisting of the remainder of the line. 4. Typing an empty line repeats the last command. (Actually, it calls the method `emptyline', which may be overridden in a subclass.) 5. There is a predefined `help' method. Given an argument `topic', it calls the command `help_topic'. With no arguments, it lists all topics with defined help_ functions, broken into up to three topics; documented commands, miscellaneous help topics, and undocumented commands. 6. The command '?' is a synonym for `help'. The command '!' is a synonym for `shell', if a do_shell method exists. 7. If completion is enabled, completing commands will be done automatically, and completing of commands args is done by calling complete_foo() with arguments text, line, begidx, endidx. text is string we are matching against, all returned matches must begin with it. line is the current input line (lstripped), begidx and endidx are the beginning and end indexes of the text being matched, which could be used to provide different completion depending upon which position the argument is in. The `default' method may be overridden to intercept commands for which there is no do_ method. The `completedefault' method may be overridden to intercept completions for commands that have no complete_ method. The data member `self.ruler' sets the character used to draw separator lines in the help messages. If empty, no ruler line is drawn. It defaults to "=". If the value of `self.intro' is nonempty when the cmdloop method is called, it is printed out on interpreter startup. This value may be overridden via an optional argument to the cmdloop() method. The data members `self.doc_header', `self.misc_header', and `self.undoc_header' set the headers used for the help function's listings of documented functions, miscellaneous topics, and undocumented functions respectively. NCmdz(Cmd) _ceZdZdZeZeZdZdZ dZ dZ dZ dZ dZdZd Zdd Zdd Zd Zd ZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!ddZ"y)raA simple framework for writing line-oriented command interpreters. These are often useful for test harnesses, administrative tools, and prototypes that will later be wrapped in a more sophisticated interface. A Cmd instance or subclass instance is a line-oriented interpreter framework. There is no good reason to instantiate Cmd itself; rather, it's useful as a superclass of an interpreter class you define yourself in order to inherit Cmd's methods and encapsulate action methods. =Nz(Documented commands (type help ):zMiscellaneous help topics:zUndocumented commands:z*** No help on %sc|||_ntj|_|||_ntj|_g|_||_y)aInstantiate a line-oriented interpreter framework. The optional argument 'completekey' is the readline name of a completion key; it defaults to the Tab key. If completekey is not None and the readline module is available, command completion is done automatically. The optional arguments stdin and stdout specify alternate input and output file objects; if not specified, sys.stdin and sys.stdout are used. N)stdinsysstdoutcmdqueue completekey)selfrr r s /usr/lib/python3.12/cmd.py__init__z Cmd.__init__LsC  DJDJ   DK**DK &c|j|jr_|jrS ddl}|j |_|j |j|j|jdz |||_ |jr1|jjt|jdzd}|s|jr|jjd}n|jr t!|j"}nx|jj|j"|jj'|j(j}t+|sd}n|j-d}|j/|}|j1|}|j3||}|s|j5|jr.|jr! ddl}|j |j yyy#t$rYwxYw#t$$rd}YwxYw#t$rYywxYw#|jr=|jr0 ddl}|j |j w#t$rYwwxYwwwxYw)zRepeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument. rNz : complete EOFz )preloop use_rawinputrreadline get_completer old_completer set_completercompleteparse_and_bind ImportErrorintror writestrr popinputpromptEOFErrorflushr lenrstripprecmdonecmdpostcmdpostloop)rrrstoplines rcmdloopz Cmd.cmdloopbs$    !1!1 %-%;%;%="&&t}}5''(8(8(EF!  " zz !!#djj/$"67D====,,Q/D(()#(#5D ))$++6 ))+#zz224"4y#(D#';;v#6D{{4({{4(||D$/'( MMO  T%5%5#**4+=+=>&6 =   ()#(D)&#   T%5%5#**4+=+=>" &6 sAH =A>H<<HB/H<H<*H- HH H*'H<)H**H<- H98H9<JI65J6 J?JJJc|S)zHook method executed just before the command line is interpreted, but after the input prompt is generated and issued. rr.s rr)z Cmd.precmds  rc|S)z?Hook method executed just after a command dispatch is finished.r1)rr-r.s rr+z Cmd.postcmds rcy)z>Hook method executed once when the cmdloop() method is called.Nr1rs rrz Cmd.preloops rcy)zYHook method executed once when the cmdloop() method is about to return. Nr1r5s rr,z Cmd.postloops rcN|j}|sdd|fS|ddk(r d|ddz}n"|ddk(rt|dr d|ddz}ndd|fSdt|}}||kr-|||jvr|dz}||kr|||jvr|d|||dj}}|||fS) zParse the line into a command name and a string containing the arguments. Returns a tuple containing (command, args, line). 'command' and 'args' may be None if the line couldn't be parsed. Nr?zhelp r!do_shellzshell )striphasattrr' identchars)rr.incmdargs r parselinez Cmd.parselines zz|t# # !W^T!"X%D !W^tZ($qr(*T4''#d)1!eQ4??2!Aa!eQ4??28T!"X^^-SC~rc8|j|\}}}|s|jS||j|S||_|dk(rd|_|dk(r|j|S t |d|z}||S#t $r|j|cYSwxYw)ahInterpret the argument as though it had been typed in response to the prompt. This may be overridden, but should not normally need to be; see the precmd() and postcmd() methods for useful execution hooks. The return value is a flag indicating whether interpretation of commands by the interpreter should stop. rrdo_)rB emptylinedefaultlastcmdgetattrAttributeError)rr.r@rAfuncs rr*z Cmd.onecmds-S$>># # ;<<% % 5=DL "9<<% % *tUS[19 " *||D)) *s%A<<BBcR|jr|j|jSy)zCalled when an empty line is entered in response to the prompt. If this method is not overridden, it repeats the last nonempty command entered. N)rGr*r5s rrEz Cmd.emptylines# <<;;t||, , rc@|jjd|zy)zCalled on an input line when the command prefix is not recognized. If this method is not overridden, it prints an error message and returns. z*** Unknown syntax: %s N)r r r2s rrFz Cmd.defaults 4T9:rcgS)zMethod called to complete an input line when no command-specific complete_*() method is available. By default, it returns an empty list. r1)rignoreds rcompletedefaultzCmd.completedefaults  rc|d|z}|jDcgc]}|j|s|ddc}Scc}w)NrD) get_names startswith)rtextrNdotextas r completenameszCmd.completenamess7t#~~/H!1<<3G!"HHHs99c|dk(rddl}|j}|j}t|t|z }|j |z }|j |z }|dkDr8|j |\} } } | dk(r |j} n t|d| z} n |j} | |||||_ |j|S#t$r|j} Y7wxYw#t$rYywxYw)zReturn the next possible completion for 'text'. If a command has not been entered, then complete against command list. Otherwise try to call complete_ to get list of completions. rNr complete_) rget_line_bufferlstripr' get_begidx get_endidxrBrOrHrIrWcompletion_matches IndexError) rrTstaterorigliner.strippedbegidxendidxr@argsfoocompfuncs rrz Cmd.completes A: //1H??$D8}s4y0H((*X5F((*X5Fax!%!5T3"9#33H8#*4s1B#C --&.tT66&JD # **51 1 *8#'#7#78  s$CC+C('C(+ C76C7c,t|jSN)dir __class__r5s rrRz Cmd.get_namess4>>""rct|j}tfd|jD}t||zS)Nc3VK|] }|jddzr|dd"yw)help_rN)rS).0rVres r z$Cmd.complete_help.. s39q WtAw%67qrU9s&))setrWrRlist)rrecommandstopicss ` r complete_helpzCmd.complete_helpsH)t))4019DNN$499Hv%&&rc4|r t|d|z}|y|j}g}g}t}|D]}|dddk(s |j|dd!|jd} |D]x}|dddk(s || k(r|} |dd} | |vr#|j| |j| @t||jr|j| h|j| z|jj dt |jz|j|j|dd |j|j t#|dd |j|j$|dd y#t$r t|d|zj}|r)|jj dt |zYyn#t$rYnwxYw|jj dt |j |fzzYywxYw) zEList available commands with "help" or detailed help with "help cmd".rnrD%s NrorrQP)rHrI__doc__r r r!nohelprRrraddsortappendremove doc_leader print_topics doc_header misc_headersorted undoc_header) rrArJdocnamescmds_doc cmds_undocrunameprevnamer@s rdo_helpz Cmd.do_help$s  tWs]3 FNN$EHJUF )8w&JJtABx( ) JJLH /8u$x' #HQRCf} , c* t,44 ,"))#. / KK  fS%99 :   dooR C   d..2 F   d//R CM" eck2::C ))&S/:& !!&T[[C6-A)B"BC s6F H AGH GHG8HHc J|r|jjdt|z|jr=|jjdt|jt |zz|j ||dz |jjdyy)Nrxrr)r r r!rulerr' columnize)rheadercmdscmdlenmaxcols rrzCmd.print_topicsRsy  KK  fS[0 1zz !!&TZZ#f+-E)F"FG NN4 * KK  d # rc ^|s|jjdytt|Dcgc]}t ||t s|}}|r+t ddjtt |zt|}|dk(r+|jjdt |dzytdt|D]}||zdz |z}g}d} t|D]]} d} t|D]+} | || zz}||k\rn||} t| t| } -|j| | | d zz } | |kDs]n| |ksnt|}d}dg}t|D]} g}t|D](} | || zz}||k\rd } n||} |j| *|r|d s |d =|r|d s tt|D]} || j|| || <|jjdt d j|zycc}w) zDisplay a list of strings as a compact set of columns. Each column is only as wide as necessary. Columns are separated by two spaces (one was not legible enough). z Nz list[i] not a string for i in %sz, rrxrrz ) r r ranger' isinstancer! TypeErrorjoinmapmaxrljust)rrs displaywidthr> nonstringssizenrowsncols colwidthstotwidthcolcolwidthrowxtextss rrz Cmd.columnizeZs^  KK  k * !&s4y!19A)$q'379 9 >"iiC(<=>? ?4y 19 KK  fSa\1 2 1c$i( E%Z\e+EIHU|  <5CeCiADyQA"8SV4H 5   *HqL(l* <'# &IEEI< "3Z--in=c  > KK  fS5)9%:: ; rsA*X '   ! !FMM 1C 7 ]<]