opt
/
alt
/
python310
/
lib64
/
python3.10
/
lib2to3
/
__pycache__
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
__init__.cpython-310.opt-1.pyc
319 bytes
Rename
Delete
__init__.cpython-310.opt-2.pyc
319 bytes
Rename
Delete
__init__.cpython-310.pyc
319 bytes
Rename
Delete
__main__.cpython-310.opt-1.pyc
232 bytes
Rename
Delete
__main__.cpython-310.opt-2.pyc
232 bytes
Rename
Delete
__main__.cpython-310.pyc
232 bytes
Rename
Delete
btm_matcher.cpython-310.opt-1.pyc
4.80 KB
Rename
Delete
btm_matcher.cpython-310.opt-2.pyc
3.29 KB
Rename
Delete
btm_matcher.cpython-310.pyc
4.80 KB
Rename
Delete
btm_utils.cpython-310.opt-1.pyc
6.03 KB
Rename
Delete
btm_utils.cpython-310.opt-2.pyc
4.59 KB
Rename
Delete
btm_utils.cpython-310.pyc
6.03 KB
Rename
Delete
fixer_base.cpython-310.opt-1.pyc
6.15 KB
Rename
Delete
fixer_base.cpython-310.opt-2.pyc
3.51 KB
Rename
Delete
fixer_base.cpython-310.pyc
6.15 KB
Rename
Delete
fixer_util.cpython-310.opt-1.pyc
11.80 KB
Rename
Delete
fixer_util.cpython-310.opt-2.pyc
9.81 KB
Rename
Delete
fixer_util.cpython-310.pyc
11.80 KB
Rename
Delete
main.cpython-310.opt-1.pyc
8.50 KB
Rename
Delete
main.cpython-310.opt-2.pyc
6.80 KB
Rename
Delete
main.cpython-310.pyc
8.51 KB
Rename
Delete
patcomp.cpython-310.opt-1.pyc
5.23 KB
Rename
Delete
patcomp.cpython-310.opt-2.pyc
4.76 KB
Rename
Delete
patcomp.cpython-310.pyc
5.42 KB
Rename
Delete
pygram.cpython-310.opt-1.pyc
1.25 KB
Rename
Delete
pygram.cpython-310.opt-2.pyc
1.06 KB
Rename
Delete
pygram.cpython-310.pyc
1.25 KB
Rename
Delete
pytree.cpython-310.opt-1.pyc
23.24 KB
Rename
Delete
pytree.cpython-310.opt-2.pyc
14.95 KB
Rename
Delete
pytree.cpython-310.pyc
23.85 KB
Rename
Delete
refactor.cpython-310.opt-1.pyc
20.24 KB
Rename
Delete
refactor.cpython-310.opt-2.pyc
16.37 KB
Rename
Delete
refactor.cpython-310.pyc
20.27 KB
Rename
Delete
o �?Og� � @ s� d Z dZddlZddlmZmZmZmZmZm Z ddl mZ ddl mZ G dd � d e �Zd d� ZG dd � d e�Zejejejdd�Zdd� Zdd� Zdd� ZdS )z�Pattern compiler. The grammar is taken from PatternGrammar.txt. The compiler compiles a pattern to a pytree.*Pattern instance. z#Guido van Rossum <guido@python.org>� N� )�driver�literals�token�tokenize�parse�grammar)�pytree)�pygramc @ s e Zd ZdS )�PatternSyntaxErrorN)�__name__� __module__�__qualname__� r r �6/opt/alt/python310/lib64/python3.10/lib2to3/patcomp.pyr s r c c sN � t jt jt jh}t�t�| �j�}|D ]}|\}}}}}||vr$|V qdS )z6Tokenizes a string suppressing significant whitespace.N) r �NEWLINE�INDENT�DEDENTr �generate_tokens�io�StringIO�readline) �input�skip�tokensZ quintuple�type�value�start�endZ line_textr r r �tokenize_wrapper s ���r c @ s: e Zd Zd dd�Zddd�Zdd� Zd d d �Zdd� ZdS )�PatternCompilerNc C sZ |du r t j| _t j| _n t�|�| _t �| j�| _t j| _ t j | _tj| jt d�| _dS )z^Initializer. Takes an optional alternative filename for the pattern grammar. N)Zconvert)r Zpattern_grammarr Zpattern_symbols�symsr Zload_grammarZSymbolsZpython_grammarZ pygrammarZpython_symbols�pysymsZDriver�pattern_convert)�selfZgrammar_filer r r �__init__( s zPatternCompiler.__init__Fc C sb t |�}z | jj||d�}W n tjy" } ztt|��d�d}~ww |r,| �|�|fS | �|�S )z=Compiles a pattern string to a nested pytree.*Pattern object.)�debugN)r r Zparse_tokensr Z ParseErrorr �str�compile_node)r$ r r&