⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.140
Server IP:
97.74.87.16
Server:
Linux 16.87.74.97.host.secureserver.net 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib64
/
python3.9
/
lib2to3
/
pgen2
/
__pycache__
/
View File Name :
tokenize.cpython-39.opt-1.pyc
a �����DOgR������������������� ���@���s���d�Z�dZdZddlZddlZddlmZmZ�ddlT�ddl m Z �d d ��ee �D��g�d��Z[ ze �W�n�eyz���eZ Y�n0�dd ��Zdd��Zdd��Zdd��ZdZdZeede���ee��ZdZdZdZdZedd�Zeeeee�ZdZedd�ee��Zd e�Zeee�Z ed!e d"��Z!ee!e e�Z"d#Z#d$Z$d%Z%d&Z&d'Z'ee'd(�e'd)��Z(ee'd*�e'd+��Z)ed,d-d.d/d0d1d2d3d4� Z*d5Z+ed6d7d8�Z,ee*e+e,�Z-ee"e-e)e�Z.ee.�Z/ee'd9�ed:d��e'd;�ed<d���Z0edee(�Z1eee1e"e-e0e��Z2e3ej4e/e2e%e&f�\Z5Z6Z7Z8ed=d>d?d@�ed=d>dAdB�B�h�dC�B�Z9e�4e#�e�4e$�e7e8dD�dEdF��e9D���dGdF��e9D���dHdF��e9D���Z:d(d)hdIdJ��e9D��B�dKdJ��e9D��B�Z;d:d<hdLdJ��e9D��B�dMdJ��e9D��B�Z<dNZ=G�dOdP��dPe>�Z?G�dQdR��dRe>�Z@dSdT��ZAeAfdUdV�ZBdWdX��ZCG�dYdZ��dZ�ZDe�4d[ejE�ZFe�4d\ejE�ZGd]d^��ZHd_d`��ZIdadb��ZJdcdd��ZKeLdek�r�ddlMZMeNeMjO�dk�r|eBePeMjOd��jQ��neBeMjRjQ��dS�)fa���Tokenization help for Python programs. generate_tokens(readline) is a generator that breaks a stream of text into Python tokens. It accepts a readline-like method which is called repeatedly to get the next line of input (or "" 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 Older entry points tokenize_loop(readline, tokeneater) tokenize(readline, tokeneater=printtoken) are the same, except instead of generating tokens, tokeneater is a callback function to which the 5 fields described above are passed as 5 arguments, each time a new token is found.zKa-Ping Yee <ping@lfw.org>z@GvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, Skip Montanaro�����N)�BOM_UTF8�lookup)�*����)�tokenc�����������������C���s���g�|�]}|d��dkr|�qS�)r����_��)�.0�xr���r����./usr/lib64/python3.9/lib2to3/pgen2/tokenize.py� <listcomp>%��������r���)�tokenize�generate_tokens� untokenizec������������������G���s���dd��|���d�S�)N�(�|�))�join��choicesr���r���r����group0���r ���r���c������������������G���s���t�|���d�S�)Nr����r���r���r���r���r����any1���r ���r���c������������������G���s���t�|���d�S�)N�?r���r���r���r���r����maybe2���r ���r���c���������������������s���t���fdd���D���S�)Nc�����������������3���s4���|�],}��d��D�]}|����|����kr||�V��qqdS�))��N)�casefold)r ���r ����y��lr���r���� <genexpr>4���s���z _combinations.<locals>.<genexpr>)�setr���r���r���r���� _combinations3���s�����r#���z[ \f\t]*z #[^\r\n]*z\\\r?\nz\w+z0[bB]_?[01]+(?:_[01]+)*z(0[xX]_?[\da-fA-F]+(?:_[\da-fA-F]+)*[lL]?z0[oO]?_?[0-7]+(?:_[0-7]+)*[lL]?z[1-9]\d*(?:_\d+)*[lL]?z0[lL]?z[eE][-+]?\d+(?:_\d+)*z\d+(?:_\d+)*\.(?:\d+(?:_\d+)*)?z\.\d+(?:_\d+)*z\d+(?:_\d+)*z\d+(?:_\d+)*[jJ]z[jJ]z[^'\\]*(?:\\.[^'\\]*)*'z[^"\\]*(?:\\.[^"\\]*)*"z%[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''z%[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""z'(?:[uUrRbBfF]|[rR][fFbB]|[fFbBuU][rR])?�'''�"""z'[^\n'\\]*(?:\\.[^\n'\\]*)*'z"[^\n"\\]*(?:\\.[^\n"\\]*)*"z\*\*=?z>>=?z<<=?z<>z!=z//=?z->z[+\-*/%&@|^=<>]=?�~z[][(){}]z\r?\nz:=z[:;.,`@]z'[^\n'\\]*(?:\\.[^\n'\\]*)*�'z"[^\n"\\]*(?:\\.[^\n"\\]*)*�"�r�R�f�F�b�B>����urZuRZUR�uZUr�U)r'���r(���r$���r%���c�����������������C���s���i�|�]}|��d��t��qS��r$���)�single3prog�r ����prefixr���r���r���� <dictcomp>y���r ���r6���c�����������������C���s���i�|�]}|��d��t��qS��r%���)�double3progr4���r���r���r���r6���z���r ���c�����������������C���s���i�|�] }|d��qS��Nr���r4���r���r���r���r6���{���r ���c�����������������C���s���h�|�]}|��d���qS�r2���r���r4���r���r���r���� <setcomp>���r ���r:���c�����������������C���s���h�|�]}|��d���qS�r7���r���r4���r���r���r���r:�������r ���c�����������������C���s���h�|�]}|��d���qS�)r'���r���r4���r���r���r���r:�������r ���c�����������������C���s���h�|�]}|��d���qS�)r(���r���r4���r���r���r���r:�������r �������c�������������������@���s���e�Zd�ZdS�)� TokenErrorN��__name__� __module__�__qualname__r���r���r���r���r<�������r ���r<���c�������������������@���s���e�Zd�ZdS�)�StopTokenizingNr=���r���r���r���r���rA�������r ���rA���c����������� ��� ���C���s4���|\}}|\}}t�d||||t|��t|�f���d�S�)Nz%d,%d-%d,%d: %s %s)�print�tok_name�repr) �typer���Zxxx_todo_changemeZxxx_todo_changeme1�lineZsrowZscolZerowZecolr���r���r���� printtoken����s �����rG���c�����������������C���s&���zt�|�|��W�n�ty ���Y�n0�dS�)a:�� The tokenize() function accepts two parameters: one representing the input stream, and one providing an output mechanism for tokenize(). The first parameter, readline, 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 a string. The second parameter, tokeneater, must also be a callable object. It is called once for each token, with five arguments, corresponding to the tuples generated by generate_tokens(). N)� tokenize_looprA���)�readline� tokeneaterr���r���r���r�������s���� r���c�����������������C���s���t�|��D�]}||���qd�S�r9���)r���)rI���rJ���Z token_infor���r���r���rH�������s����rH���c�������������������@���s,���e�Zd�Zdd��Zdd��Zdd��Zdd��Zd S�) �Untokenizerc�����������������C���s���g�|�_�d|�_d|�_d�S�)Nr���r���)�tokens�prev_row�prev_col)�selfr���r���r����__init__����s����zUntokenizer.__init__c�����������������C���s*���|\}}||�j��}|r&|�j�d|���d�S�)N� )rN���rL����append)rO����start�row�col� col_offsetr���r���r����add_whitespace����s���� zUntokenizer.add_whitespacec�����������������C���s����|D�]p}t�|�dkr$|��||���qv|\}}}}}|��|��|�j�|��|\|�_|�_|ttfv�r|��jd7��_d|�_qd� |�j�S�)N����r���r���r���) �len�compatrW���rL���rR���rM���rN����NEWLINE�NLr���)rO����iterable�t�tok_typer���rS����endrF���r���r���r���r�������s���� zUntokenizer.untokenizec����������� ������C���s����d}g�}|�j�j}|\}}|ttfv�r,|d7�}|ttfv�r<d}|D�]�}|d�d��\}}|ttttfv�rl|d7�}|tkr�|�|��q@n>|t kr�|� ���q@n*|ttfv�r�d}n|r�|r�||d���d}||��q@d�S�)NFrQ���TrX������)rL���rR����NAME�NUMBERr[���r\����ASYNC�AWAIT�INDENT�DEDENT�pop) rO���r���r]���� startline�indents�toks_append�toknum�tokval�tokr���r���r���rZ�������s0���� zUntokenizer.compatN)r>���r?���r@���rP���rW���r���rZ���r���r���r���r���rK�������s���rK���z&^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)s���^[ \t\f]*(?:[#\r\n]|$)c�����������������C���sH���|�dd�������dd�}|dks*|�d�r.dS�|dv�s@|�d�rDd S�|�S�) z(Imitates get_normal_name in tokenizer.c.N����r����-�utf-8zutf-8-)zlatin-1� iso-8859-1ziso-latin-1)zlatin-1-ziso-8859-1-ziso-latin-1-rr���)�lower�replace� startswith)�orig_enc�encr���r���r����_get_normal_name����s�����rx���c��������������������s����d��d}d}�fdd�}��fdd�}|��}|��t�rHd��|d d��}d }|sT|g�fS�||�}|rj||gfS�t�|�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. FNrq���c����������������������s&���z����W�S��t�y ���t���Y�S�0�d�S�r9���)� StopIteration�bytesr���)rI���r���r����read_or_stop��s����z%detect_encoding.<locals>.read_or_stopc��������������������s����z|���d�}W�n�ty"���Y�d�S�0�t�|�}|s6d�S�t|�d��}zt|�}W�n�tyn���td|���Y�n0���r�|j dkr�td��|d7�}|S�)N�asciir���zunknown encoding: rq���zencoding problem: utf-8z-sig) �decode�UnicodeDecodeError� cookie_re�matchrx���r���r����LookupError�SyntaxError�name)rF����line_stringr�����encoding�codec)� bom_foundr���r����find_cookie��s"���� z$detect_encoding.<locals>.find_cookieT����z utf-8-sig)ru���r����blank_rer����)rI���r�����defaultr{���r�����first�secondr���)r����rI���r����detect_encoding����s0���� r����c�����������������C���s���t���}|�|��S�)a���Transform tokens back into Python source code. 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 text will tokenize the back to the input t1 = [tok[:2] for tok in generate_tokens(f.readline)] newcode = untokenize(t1) readline = iter(newcode.splitlines(1)).next t2 = [tok[:2] for tokin generate_tokens(readline)] assert t1 == t2 )rK���r���)r]����utr���r���r���r���:��s����r���c�����������������c���s|��d�}�}}d\}}d}dg}d}d} d} d}z |���}W�n�t�yN���d}Y�n0�|d�}dt|��} }|�r0|sztd|��|�|�}|r�|�d��} }t||d|���|||f||�fV��d\}}d}nd|�r|dd��d k�r|d d��dk�rt||�||t|�f|fV��d}d}q.n||�}||�}q.�nB|dk�rZ|�sZ|�sJ�q$d}| |k��r�|| �dk�rp|d�}n8|| �d k�r�|t�d�t�}n|| �dk�r�d}n�q�| d�} �qN| |k�rq$|�r�|V��d}|| �dv��r�|| �dk�rR|| d���d�}| t|��}t ||| f|| t|��f|fV��t ||d��||f|t|�f|fV��q.t t f|| �dk�|| d��|| f|t|�f|fV��q.||d�k�r�|�|��t|d| ��|df|| f|fV��||d�k��r2||v�r�t dd|| |f��|dd��}| �r| |d�k�rd} d}d} td|| f|| f|fV���q�| �rr|�rr| |d�k�rrd} d}d} n|�sntd|df��d}| |k�r.t�|| �}|�r�|�d�\}}||f||f|��}}} |||��||��}}|tjv��s�|dk�r�|dk�r�t||||fV���q|dv��rHt}|dk�rt }n | �r$d}|�r4|V��d}|||||fV���q|dk�rv|�rb|V��d}t ||||fV���q|tv��r�t|�}|�|| �}|�r�|�d�} ||| ��}|�r�|V��d}t|||| f|fV��n||f}||d��}|}q.�q|tv��s"|dd��tv��s"|dd��tv��r�|d�dk�rv||f}t|��pZt|d���pZt|d��}||d��d�}}|}q.n |�r�|V��d}t||||fV���q|����rz|dv��r�| �r�|dk�r�tnt||||fV���qrt||||f}|dk�r�|�s�|}�qr|dv��rb|�rb|d�tk�rb|d�dk�rb|dk�r>d} |d�} t|d�|d�|d�|d�fV��d}|�rr|V��d}|V��nz|d k�r�|�r�|V��d}t |||| f|fV��d}nF|d!v��r�|d�}n|d"v��r�|d�}|�r�|V��d}t||||fV��n(t|| �|| f|| d�f|fV��| d�} �qrq.|�r4|V��d}|dd��D�]}td|df|dfdfV���q@td|df|dfdfV��dS�)#a4�� The generate_tokens() 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 a string. Alternately, readline can be a callable function terminating with StopIteration: readline = open(myfile).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. r���)r���r���NFr���r���zEOF in multi-line string���z\ ���z\ rQ���� �z# �#z ra���z3unindent does not match any outer indentation levelz <tokenize>zEOF in multi-line statement�.TrX���r����� )�async�awaitr����)�def�forr���������\z([{z)]})ry���rY���r<���r����r`����STRING� ERRORTOKEN�tabsize�rstrip�COMMENTr\���rR���rf����IndentationErrorrg���� pseudoprog�span�string�digitsrc���r[���� triple_quoted�endprogs� single_quoted�isidentifierrd���re���rb����OP� ENDMARKER)rI����lnum�parenlev� continued�contstr�needcont�contlinerj���ZstashedZ async_defZasync_def_indentZasync_def_nlrF����pos�max�strstart�endprog�endmatchr`����column� comment_tokenZnl_pos�pseudomatchrS����spos�eposr����initial�newlinern����indentr���r���r���r���O��s���� �*� ��� ��� �� � � � � � �r����__main__)S�__doc__� __author__�__credits__r�����re�codecsr���r���Zlib2to3.pgen2.tokenr���r����dir�__all__rz���� NameError�strr���r���r���r#���� Whitespace�Comment�Ignore�Name� Binnumber� Hexnumber� Octnumber� Decnumber� Intnumber�Exponent� Pointfloat�Expfloat�Floatnumber� Imagnumber�Number�Single�Double�Single3�Double3Z _litprefix�Triple�StringZOperatorZBracket�Special�Funny� PlainToken�Token�ContStr�PseudoExtras�PseudoToken�map�compileZ tokenprogr����r3���r8���Z_strprefixesr����r����r����r����� Exceptionr<���rA���rG���r���rH���rK����ASCIIr���r����rx���r����r���r���r>����sysrY����argv�openrI����stdinr���r���r���r����<module>���s����� �������������������8I�c &