选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´ieã@sBdZdZdZddlmZddlmZmZddl Z ddl m Z ddl Z ddlZddlZddlTdd lmZe d ej¡Ze d ej¡ZddlZejgd ¢Z[Gd d„de  dd¡ƒZdd„Zdd„Zdd„ZdZdZeedeƒeeƒZdZdZ 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+d&d'„Z,ee+ƒŽZ-d(Z.d)Z/d*Z0d+Z1ee-d,e-d-ƒZ2ee-d.e-d/ƒZ3ee4ej5e6ed0d1�ƒŽZ7ed2e7ƒZ8ee*e8e3eƒZ9ee9Z:ee-d3ed4dƒe-d5ed6dƒƒZ;ed7ee2ƒZe+ƒD]6Z?e.e>e?d4<e/e>e?d6<e0e>e?d,<e1e>e?d-<�q&e@ƒZAe@ƒZBe+ƒD]JZCeCd6eCd4fD]ZDeA EeD¡�q„eCd-eCd,fD]ZDeB EeD¡�q¦�qpd8ZFGd9d:„d:eGƒZHGd;d<„d„d>ƒZJd?d@„ZKdAdB„ZLdCdD„ZMdEdF„ZdGdH„ZNdIdJ„ZOdKdL„ZPdMdN„ZQeRdOk�r>eQƒdS)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)ÚlookupÚBOM_UTF8N)Ú TextIOWrapper)Ú*)ÚEXACT_TOKEN_TYPESz&^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)s^[ \t\f]*(?:[#\r\n]|$))ÚtokenizeÚgenerate_tokensÚdetect_encodingÚ untokenizeÚ TokenInfoc@s eZdZdd„Zedd„ƒZdS)r cCs$d|jt|jf}d|j|d�S)Nz%d (%s)z8TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r))Útype)r Útok_nameÚ_replace)ÚselfÚannotated_type©rú /usr/lib64/python3.9/tokenize.pyÚ__repr__.s ÿzTokenInfo.__repr__cCs(|jtkr|jtvrt|jS|jSdS©N)r ÚOPÚstringr©rrrrÚ exact_type3s zTokenInfo.exact_typeN)Ú__name__Ú __module__Ú __qualname__rÚpropertyrrrrrr -sr ztype string start end linecGsdd |¡dS)Nú(ú|ú))Újoin©ÚchoicesrrrÚgroup:ór$cGs t|ŽdS)Nr©r$r"rrrÚany;r%r'cGs t|ŽdS)Nú?r&r"rrrÚmaybe<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„|DƒŽD]}| d |¡¡q8q q|S)N)ÚbÚrÚuÚfÚbrÚfrÚcSsg|]}|| ¡f‘qSr)Úupper)Ú.0ÚcrrrÚ ^r%z(_all_string_prefixes..)Ú _itertoolsÚ permutationsÚproductÚaddr!)Ú_valid_string_prefixesÚresultÚprefixÚtr,rrrÚ_all_string_prefixesSsr=cCst |tj¡Sr)ÚreÚcompileÚUNICODE)ÚexprrrrÚ_compilebsrBz[^'\\]*(?:\\.[^'\\]*)*'z[^"\\]*(?:\\.[^"\\]*)*"z%[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''z%[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""z'''z"""z'[^\n'\\]*(?:\\.[^\n'\\]*)*'z"[^\n"\\]*(?:\\.[^\n"\\]*)*"T)Úreversez\r?\nz'[^\n'\\]*(?:\\.[^\n'\\]*)*ú'z"[^\n"\\]*(?:\\.[^\n"\\]*)*ú"z \\\r?\n|\Zéc@s eZdZdS)Ú TokenErrorN©rrrrrrrrG�r%rGc@s eZdZdS)ÚStopTokenizingNrHrrrrrIŸr%rIc@s,eZdZdd„Zdd„Zdd„Zdd„Zd S) Ú UntokenizercCsg|_d|_d|_d|_dS)Nér)ÚtokensÚprev_rowÚprev_colÚencodingrrrrÚ__init__¤szUntokenizer.__init__cCs„|\}}||jks&||jkr>||jkr>td |||j|j¡ƒ‚||j}|rb|j d|¡d|_||j}|r€|j d|¡dS)Nz+start ({},{}) precedes previous end ({},{})ú\ rú )rMrNÚ ValueErrorÚformatrLÚappend)rÚstartÚrowÚcolÚ row_offsetÚ col_offsetrrrÚadd_whitespaceªs ÿ  zUntokenizer.add_whitespacec Cs6t|ƒ}g}d}|D�]}t|ƒdkr8| ||¡�q*|\}}}} } |tkrV||_q|tkrd�q*|tkrz| |¡qnl|tkrš|  ¡| \|_ |_ qnL|t t fvr¬d}n:|ræ|ræ|d} |dt| ƒkrâ|j | ¡t| ƒ|_ d}| |¡|j |¡| \|_ |_ |t t fvr|j d7_ d|_ qd |j¡S)NFéTéÿÿÿÿrKrr0)ÚiterÚlenÚcompatÚENCODINGrOÚ ENDMARKERÚINDENTrUÚDEDENTÚpoprMrNÚNEWLINEÚNLrLr[r!) rÚiterableÚitÚindentsÚ startliner<Útok_typeÚtokenrVÚendÚlineÚindentrrrr ·sF            zUntokenizer.untokenizec Csæg}|jj}|dttfv}d}t |g|¡D]²}|dd…\}} |tkrR| |_q.|tt fvrf| d7} |t kr€|rzd| } d}nd}|t krš| | ¡q.n>|t kr®|  ¡q.n*|ttfvrÀd}n|rØ|rØ||dƒd}|| ƒq.dS)NrFr\rRTr])rLrUrfrgr5ÚchainrarOÚNAMEÚNUMBERÚSTRINGrcrdre) rrmrhrjÚ toks_appendrkÚ prevstringÚtokÚtoknumÚtokvalrrrr`Üs8    zUntokenizer.compatN)rrrrPr[r r`rrrrrJ¢s %rJcCs*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)rJr rOÚencode)rhÚutÚoutrrrr s    r cCsH|dd… ¡ dd¡}|dks*| d¡r.dS|dvs@| d¡rDd 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�)ÚlowerÚreplaceÚ startswith)Úorig_encÚencrrrÚ_get_normal_namesÿr‡csÜz ˆjj‰Wnty"d‰Yn0d‰d}d}‡fdd„}‡‡fdd„}|ƒ}| t¡rnd‰|d d…}d }|sz|gfS||ƒ}|r�||gfSt |¡s¤||gfS|ƒ}|s¸||gfS||ƒ}|rÐ|||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. NFr€cs"zˆƒWStyYdS0dS)Nr%)Ú StopIterationr©ÚreadlinerrÚ read_or_stop?s z%detect_encoding..read_or_stopcsàz| d¡}Wn2ty@d}ˆdur4d |ˆ¡}t|ƒ‚Yn0t |¡}|sTdSt| d¡ƒ}z t|ƒ}Wn8t y¦ˆdurŽd|}n d ˆ|¡}t|ƒ‚Yn0ˆrÜ|dkrÔˆdurÂd}n d ˆ¡}t|ƒ‚|d 7}|S) Nr€z'invalid or missing encoding declarationz {} for {!r}rKzunknown encoding: zunknown encoding for {!r}: {}zencoding problem: utf-8z encoding problem for {!r}: utf-8z-sig) ÚdecodeÚUnicodeDecodeErrorrTÚ SyntaxErrorÚ cookie_reÚmatchr‡r$rÚ LookupError)roÚ line_stringÚmsgr�rOÚcodec)Ú bom_foundÚfilenamerrÚ find_cookieEs8      ÿ z$detect_encoding..find_cookieTéú utf-8-sig)Ú__self__ÚnameÚAttributeErrorr„rÚblank_rer�)rŠrOÚdefaultr‹r—ÚfirstÚsecondr)r•r–rŠrr 's8    &       r cCsXt|dƒ}z2t|jƒ\}}| d¡t||dd�}d|_|WS| ¡‚Yn0dS)zXOpen a file in read only mode using the encoding detected by detect_encoding(). ÚrbrT)Úline_bufferingr+N)Ú _builtin_openr rŠÚseekrÚmodeÚclose)r–ÚbufferrOÚlinesÚtextrrrr„s  rcCs6t|ƒ\}}t d¡}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 r5Úrepeatrqr^Ú _tokenizeÚ__next__)rŠrOÚconsumedÚemptyÚrl_genrrrr”s  rccszd}}}d}d\}}d}dg} |durH|dkr6d}tt|dddƒVd} d} z| } |ƒ} Wntytd} Yn0|durˆ|  |¡} |d 7}dt| ƒ} } |�rn| s²td |ƒ‚| | ¡}|�r| d¡} }tt|| d|…|||f|| ƒVd\}}d}nf|�rX| d d…d k�rX| d d…dk�rXtt || ||t| ƒf|ƒVd}d}qPn|| }|| }qP�n¾|dk�r|�s| �sˆ�qÜd}| | k�rò| | dk�r®|d 7}n8| | dk�rÎ|t d t }n| | dk�ròd}n�qò| d 7} �qŒ| | k�r�qÜ| | dv�r„| | dk�r\| | d…  d¡}tt ||| f|| t|ƒf| ƒV| t|ƒ7} tt | | d…|| f|t| ƒf| ƒVqP|| dk�r¾|  |¡tt| d| …|df|| f| ƒV|| dk�r,|| v�rètdd|| | fƒ‚| dd…} ttd|| f|| f| ƒV�q¾n| �s(td|dfƒ‚d}| | krPttƒ | | ¡}|�r¬| d ¡\}}||f||f|}}} ||k�r~�q,| ||…| |}}||v�s¼|dk�rÒ|dk�rÒ|dk�rÒtt|||| ƒV�qÖ|dv�r|dk�rútt |||| ƒVntt|||| ƒV�qÖ|dk�r0tt |||| ƒV�qÖ|tv�r¤tt|ƒ}| | | ¡}|�r†| d¡} | || …}tt|||| f| ƒVn||f}| |d…}| }qP�qÖ|tv�sÒ|dd…tv�sÒ|dd…tv�rD|ddk�r0||f}tt |¡�pt |d ¡�pt |d¡ƒ}| |d…d }}| }qPntt|||| ƒVnf| ¡�rbtt|||| ƒVnH|dk�rrd }n8|dv�r†|d 7}n|d v�r˜|d 8}tt|||| ƒVn*tt | | || f|| d f| ƒV| d 7} �q,qP| �r.| ddv�r.|  ¡ d¡�s.ttd|d t| ƒf|d t| ƒd fdƒV| d d…D] }ttd|df|dfdƒV�q:tt d|df|dfdƒVdS)!NrÚ 0123456789)r0rr™r€)rrr0r%rKzEOF in multi-line stringéþÿÿÿrQéýÿÿÿz\ rRú ú z# ú#z r]z3unindent does not match any outer indentation levelz zEOF in multi-line statementÚ.z...r\r˜Ú ú\z([{z)]})!r rarˆrŒr_rGr�rnrtÚ ERRORTOKENÚtabsizeÚrstripÚCOMMENTrgrUrcÚIndentationErrorrdrBÚ PseudoTokenÚspanrsrfÚ triple_quotedÚendpatsÚ single_quotedÚgetÚ isidentifierrrrÚstripr„rb)rŠrOÚlnumÚparenlevÚ continuedÚnumcharsÚcontstrÚneedcontÚcontlinerjÚ last_lineroÚposÚmaxÚstrstartÚendprogÚendmatchrnÚcolumnÚ comment_tokenÚ pseudomatchrVÚsposÚeposrmÚinitialrprrrr«­s&       ÿ* ÿ     ÿ ÿ "  þ    ÿÿÿ          ÿþ ÿ þ      ÿ$.r«cCs t|dƒS)zÃTokenize 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)r«r‰rrrr dsr c s@ddl}dd„‰d‡fdd„ }|jdd�}|jdd d d d �|jd ddddd�| ¡}z¢|jr |j}t|dƒ�}tt|jƒƒ}Wdƒq²1s”0Ynd}t t j jdƒ}|D]>}|j }|j rÌ|j}d|j|j} td| t||jfƒq¶W�n@t�yL} z8| jddd…\} } || jd|| | fƒWYd} ~ nød} ~ 0t�y”} z0| jd\} } || jd|| | fƒWYd} ~ n°d} ~ 0t�yÂ} z|| |ƒWYd} ~ n‚d} ~ 0t�yî} z|| ƒWYd} ~ nVd} ~ 0t�ytdƒYn4t�y:} zˆd| ƒ‚WYd} ~ n d} ~ 00dS)NrcSstj |¡tj d¡dS)Nr·)ÚsysÚstderrÚwrite)ÚmessagerrrÚperrorps zmain..perrorcsR|r"|f||f}ˆd|ƒn"|r8ˆd||fƒn ˆd|ƒt d¡dS)Nz%s:%d:%d: error: %sz %s: error: %sz error: %srK)rÙÚexit)rÜr–ÚlocationÚargs©rÝrrÚerrorts zmain..errorzpython -m tokenize)Úprogr–r(z filename.pyz'the file to tokenize; defaults to stdin)ÚdestÚnargsÚmetavarÚhelpz-ez--exactÚexactÚ store_truez(display token names using the exact type)räÚactionrçr¡zz %d,%d-%d,%d:z%-20s%-15s%-15rrKr˜z interrupted zunexpected error: %s)NN)ÚargparseÚArgumentParserÚ add_argumentÚ parse_argsr–r£ÚlistrrŠr«rÙÚstdinr rèrrVrnÚprintrrr½ràrGrŽÚOSErrorÚKeyboardInterruptÚ Exception) rërâÚparserràr–r-rLrmÚ token_typeÚ token_rangeÚerrrorÓrrárÚmainlsT þ ÿ .ÿ**  rùÚ__main__)SÚ__doc__Ú __author__Ú __credits__Úbuiltinsrr£ÚcodecsrrÚ collectionsÚiorÚ itertoolsr5r>rÙrmrr?ÚASCIIr�r�Ú__all__Ú namedtupler r$r'r)Ú WhitespaceÚCommentÚIgnoreÚNameÚ HexnumberÚ BinnumberÚ OctnumberÚ DecnumberÚ IntnumberÚExponentÚ PointfloatÚExpfloatÚ FloatnumberÚ ImagnumberÚNumberr=rBÚ StringPrefixÚSingleÚDoubleÚSingle3ÚDouble3ÚTripleÚStringÚmapÚescapeÚsortedÚSpecialÚFunnyÚ PlainTokenÚTokenÚContStrÚ PseudoExtrasr¾rÁÚ_prefixÚsetrÂrÀr<r,r8rºrôrGrIrJr r‡r rr«r rùrrrrrÚs¶    ÿÿ   ÿ ÿÿþ      _ ]8=