/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__/tokenize.cpython-310.pyc (17194B)
o 9jAe@sTdZdZdZddlmZddlmZmZddl Z ddl Z ddl m Z ddl ZddlZddlZddlTdd lmZed ejZed ejZddlZejgd Z[Gd dde ddZddZddZddZdZdZeedeeeZdZ dZ!dZ"dZ#dZ$ee!e"e#e$Z%dZ&edd ee&Z'd!e&Z(ee'e(Z)ed"e)d#Z*ee*e)e%Z+d$d%Z,e j-d&d'Z.ee,Z/d(Z0d)Z1d*Z2d+Z3ee/d,e/d-Z4ee/d.e/d/Z5ee6ej7e8ed0d1Z9ed2e9Z:ee+e:e5e Z;ee;Zeee>e+e:e=e Z?iZ@e,D]ZAe0e@eAd4<e1e@eAd6<e2e@eAd,<e3e@eAd-<qeBZCeBZDe,D]%ZEeEd6eEd4fD]ZFeCGeFqIeEd-eEd,fD]ZFeDGeFqZq?d8ZHGd9d:d:eIZJGd;d<dd>ZLd?d@ZMdAdBZNdCdDZOdEdFZdGdHZPdIdJZQdKdLZRdMdNZSeTdOkreSdSdS)PaoTokenization help for Python programs. tokenize(readline) is a generator that breaks a stream of bytes into Python tokens. It decodes the bytes according to PEP-0263 for determining source file encoding. It accepts a readline-like method which is called repeatedly to get the next line of input (or b"" for EOF). It generates 5-tuples with these members: the token type (see token.py) the token (a string) the starting (row, column) indices of the token (a 2-tuple of ints) the ending (row, column) indices of the token (a 2-tuple of ints) the original line (string) It is designed to match the working of the Python tokenizer exactly, except that it produces COMMENT tokens for comments and gives type OP for all operators. Additionally, all token lists start with an ENCODING token which tells you which encoding was used to decode the bytes stream. zKa-Ping Yee zpGvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, Skip Montanaro, Raymond Hettinger, Trent Nelson, Michael Foord)open)lookupBOM_UTF8N) TextIOWrapper)*)EXACT_TOKEN_TYPESz&^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)s^[ \t\f]*(?:[#\r\n]|$))tokenizegenerate_tokensdetect_encoding untokenize TokenInfoc@s eZdZddZeddZdS)r cCs$d|jt|jf}d|j|dS)Nz%d (%s)z8TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r))type)r tok_name_replace)selfannotated_typer/usr/lib/python3.10/tokenize.py__repr__/s zTokenInfo.__repr__cCs$|jtkr|jtvrt|jS|jSN)r OPstringrrrrr exact_type4s zTokenInfo.exact_typeN)__name__ __module__ __qualname__rpropertyrrrrrr .sr ztype string start end linecGsdd|dS)N(|))joinchoicesrrrgroup;sr$cG t|dS)Nrr$r"rrrany< r'cGr%)N?r&r"rrrmaybe=r(r*z[ \f\t]*z #[^\r\n]*z\\\r?\nz\w+z0[xX](?:_?[0-9a-fA-F])+z0[bB](?:_?[01])+z0[oO](?:_?[0-7])+z(?:0(?:_?0)*|[1-9](?:_?[0-9])*)z[eE][-+]?[0-9](?:_?[0-9])*z)[0-9](?:_?[0-9])*\.(?:[0-9](?:_?[0-9])*)?z\.[0-9](?:_?[0-9])*z[0-9](?:_?[0-9])*z[0-9](?:_?[0-9])*[jJ]z[jJ]cCsVgd}dh}|D]}t|D]}tjdd|DD] }|d|qqq |S)N)brufbrfrcSsg|]}||fqSr)upper).0crrr _sz(_all_string_prefixes..) _itertools permutationsproductaddr!)_valid_string_prefixesresultprefixtr-rrr_all_string_prefixesTsr>cCst|tjSr)recompileUNICODE)exprrrr_compilecsrCz[^'\\]*(?:\\.[^'\\]*)*'z[^"\\]*(?:\\.[^"\\]*)*"z%[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''z%[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""z'''z"""z'[^\n'\\]*(?:\\.[^\n'\\]*)*'z"[^\n"\\]*(?:\\.[^\n"\\]*)*"T)reversez\r?\nz'[^\n'\\]*(?:\\.[^\n'\\]*)*'z"[^\n"\\]*(?:\\.[^\n"\\]*)*"z \\\r?\n|\Zc@ eZdZdS) TokenErrorNrrrrrrrrIr(rIc@rH)StopTokenizingNrJrrrrrKr(rKc@s,eZdZddZddZddZddZd S) UntokenizercCsg|_d|_d|_d|_dS)Nr)tokensprev_rowprev_colencodingrrrr__init__s zUntokenizer.__init__cCs|\}}||jks||jkr||jkrtd|||j|j||j}|r1|jd|d|_||j}|rB|jd|dSdS)Nz+start ({},{}) precedes previous end ({},{})\ r )rOrP ValueErrorformatrNappend)rstartrowcol row_offset col_offsetrrradd_whitespaces  zUntokenizer.add_whitespacec Cs,t|}g}d}|D]}t|dkr|||nv|\}}}} } |tkr)||_q |tkr/na|tkr9||q |tkrH| | \|_ |_ q |t t fvrQd}n|rn|rn|d} |dt| krl|j| t| |_ d}|||j|| \|_ |_ |t t fvr|j d7_ d|_ q d|jS)NFTrMrr1)iterlencompatENCODINGrQ ENDMARKERINDENTrWDEDENTpoprOrPNEWLINENLrNr]r!) riterableitindents startliner=tok_typetokenrXendlineindentrrrr sH            zUntokenizer.untokenizec Csg}|jj}|dttfv}d}t|g|D]W}|dd\}} |tkr)| |_q|tt fvr3| d7} |t kr@|r=d| } d}nd}|t krL|| q|t krU| q|ttfvr^d}n |rj|rj||dd}|| qdS)NrFr^rTTr_)rNrWrhrir6chainrcrQNAMENUMBERSTRINGrerfrg) rrorjrl toks_appendrm prevstringtoktoknumtokvalrrrrbs:     zUntokenizer.compatN)rrrrRr]r rbrrrrrLs  %rLcCs*t}||}|jdur||j}|S)aTransform tokens back into Python source code. It returns a bytes object, encoded using the ENCODING token, which is the first token sequence output by tokenize. Each element returned by the iterable must be a token sequence with at least two elements, a token number and token value. If only two tokens are passed, the resulting output is poor. Round-trip invariant for full input: Untokenized source will match input source exactly Round-trip invariant for limited input: # Output bytes will tokenize back to the input t1 = [tok[:2] for tok in tokenize(f.readline)] newcode = untokenize(t1) readline = BytesIO(newcode).readline t2 = [tok[:2] for tok in tokenize(readline)] assert t1 == t2 N)rLr rQencode)rjutoutrrrr s    r cCsH|dddd}|dks|drdS|dvs |dr"d S|S) z(Imitates get_normal_name in tokenizer.c.N _-utf-8zutf-8-)zlatin-1 iso-8859-1z iso-latin-1)zlatin-1-z iso-8859-1-z iso-latin-1-r)lowerreplace startswith)orig_encencrrr_get_normal_namesrcszjjWn tydYnwdd}d}fdd}fdd}|}|tr7d|d d}d }|s=|gfS||}|rH||gfSt|sR||gfS|}|s\||gfS||}|rh|||gfS|||gfS) a The detect_encoding() function is used to detect the encoding that should be used to decode a Python source file. It requires one argument, readline, in the same way as the tokenize() generator. It will call readline a maximum of twice, and return the encoding used (as a string) and a list of any lines (left as bytes) it has read in. It detects the encoding from the presence of a utf-8 bom or an encoding cookie as specified in pep-0263. If both a bom and a cookie are present, but disagree, a SyntaxError will be raised. If the encoding cookie is an invalid charset, raise a SyntaxError. Note that if a utf-8 bom is found, 'utf-8-sig' is returned. If no encoding is specified, then the default of 'utf-8' will be returned. NFrcszWStyYdSw)N) StopIterationrreadlinerr read_or_stopAs  z%detect_encoding..read_or_stopcsz|d}Wntyd}durd|}t|wt|}|s(dSt|d}zt|}Wnt yRdurHd|}t|d|}t|wrp|dkrldurcd}t|d}t||d 7}|S) Nrz'invalid or missing encoding declarationz {} for {!r}rMzunknown encoding: zunknown encoding for {!r}: {}zencoding problem: utf-8z encoding problem for {!r}: utf-8z-sig) decodeUnicodeDecodeErrorrV SyntaxError cookie_rematchrr$r LookupError)rq line_stringmsgrrQcodec) bom_foundfilenamerr find_cookieGs@       z$detect_encoding..find_cookieT utf-8-sig)__self__nameAttributeErrorrrblank_rer)rrQdefaultrrfirstsecondr)rrrrr )s:   &        r cCsNt|d}zt|j\}}|dt||dd}d|_|WS|)zXOpen a file in read only mode using the encoding detected by detect_encoding(). rbrT)line_bufferingr,) _builtin_openr rseekrmodeclose)rbufferrQlinestextrrrrs  rcCs6t|\}}td}t|t|d|}t|j|S)a The tokenize() generator requires one argument, readline, which must be a callable object which provides the same interface as the readline() method of built-in file objects. Each call to the function should return one line of input as bytes. Alternatively, readline can be a callable function terminating with StopIteration: readline = open(myfile, 'rb').__next__ # Example of alternate readline The generator produces 5-tuples with these members: the token type; the token string; a 2-tuple (srow, scol) of ints specifying the row and column where the token begins in the source; a 2-tuple (erow, ecol) of ints specifying the row and column where the token ends in the source; and the line on which the token was found. The line passed is the physical line. The first token sequence will always be an ENCODING token which tells you which encoding was used to decode the bytes stream. r)r r6repeatrsr` _tokenize__next__)rrQconsumedemptyrl_genrrrrs   rccs~d}}}d}d\}}d}dg} |dur%|dkrd}tt|dddVd} d} z| } |} Wn ty<d} Ynw|durF| |} |d 7}dt| } } |r| sZtd ||| }|r|d} }tt|| d||||f|| Vd\}}d}n|r| d dd kr| dddkrtt || ||t| f|Vd}d}q)|| }|| }q)|dkr|s| sn2d}| | kr| | dkr|d 7}n| | dkr|t d t }n | | dkrd}nn| d 7} | | ks| | krn| | dvr8| | dkr$| | d d}tt ||| f|| t|f| V| t|7} tt | | d|| f|t| f| Vq)|| dkrU| |tt| d| |df|| f| V|| dkr|| vrjtdd|| | f| dd} ttd|| f|| f| V|| dks\n | std|dfd}| | krtt| | }|r|d \}}||f||f|}}} ||krq| ||| |}}||vs|dkr|dkr|dkrtt|||| Vn|dvr|dkrtt |||| Vntt|||| Vn|dkr|drJtt |||| Vn|tvrRtt|}|| | }|rE|d} | || }tt|||| f| Vn||f}| |d}| }n|tvsi|ddtvsi|ddtvr|ddkr||f}tt|pt|d pt|d}| |dd }}| }nXtt|||| VnI|rtt|||| Vn:|dkrd }n2|d vr|d 7}n |d!vr|d 8}tt|||| Vntt | | || f|| d f| V| d 7} | | ksq*| r| ddvr|  dsttd|d t| f|d t| d fdV| d dD]}ttd|df|dfdVqtt!d|df|dfdVdS)"Nr 0123456789)r1rrr)rrr1rTrMzEOF in multi-line stringrSz\ rT  z# #z r_z3unindent does not match any outer indentation levelz zEOF in multi-line statement.z... r^r\z([{z)]})"r rcrrrarIrrprv ERRORTOKENtabsizerstripCOMMENTrirWreIndentationErrorrfrC PseudoTokenspanrurhendswith triple_quotedendpats single_quotedget isidentifierrtrstriprrd)rrQlnumparenlev continuednumcharscontstrneedcontcontlinerl last_linerqposmaxstrstartendprogendmatchrpcolumn comment_token pseudomatchrXsposeposroinitialrrrrrrs,      $        "                          $#.rcCs t|dS)zTokenize a source reading Python code as unicode strings. This has the same API as tokenize(), except that it expects the *readline* callable to return str objects instead of bytes. N)rrrrrr fs r c s2ddl}dddfdd }|jdd}|jdd d d d |jd ddddd|}zQ|jrP|j}t|d}tt|j}Wdn1sJwYn d}t t j jd}|D]}|j }|j rf|j}d|j|j} td| t||jfq[WdSty} z| jddd\} } || jd|| | fWYd} ~ dSd} ~ wty} z| jd\} } || jd|| | fWYd} ~ dSd} ~ wty} z || |WYd} ~ dSd} ~ wty} z || WYd} ~ dSd} ~ wtytdYdSty} zd| d} ~ ww)NrcSstj|tjddS)Nr)sysstderrwrite)messagerrrperrorrs zmain..perrorcsR|r|f||f}d|n|rd||fnd|tddS)Nz%s:%d:%d: error: %sz %s: error: %sz error: %srM)rexit)rrlocationargsrrrerrorvs zmain..errorzpython -m tokenize)progrr)z filename.pyz'the file to tokenize; defaults to stdin)destnargsmetavarhelpz-ez--exactexact store_truez(display token names using the exact type)ractionrrzz %d,%d-%d,%d:z%-20s%-15s%-15rrMrz interrupted zunexpected error: %s)NN)argparseArgumentParser add_argument parse_argsrrlistrrrrstdinr rrrXrpprintrrrrrIrOSErrorKeyboardInterrupt Exception) rrparserrrr.rNro token_type token_rangeerrrqrrrrmainnsf   $$ r__main__)U__doc__ __author__ __credits__builtinsrrcodecsrr collections functoolsior itertoolsr6r?rrorr@ASCIIrr__all__ namedtupler r$r'r* WhitespaceCommentIgnoreName Hexnumber Binnumber Octnumber Decnumber IntnumberExponent PointfloatExpfloat Floatnumber ImagnumberNumberr> lru_cacherC StringPrefixSingleDoubleSingle3Double3TripleStringmapescapesortedSpecialFunny PlainTokenTokenContStr PseudoExtrasrr_prefixsetrrr=r-r9rrrIrKrLr rr rrr rrrrrrs               _ ]8 =