Current Path: > > opt > alt > python311 > lib64 > python3.11 > lib2to3 > __pycache__
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.cpython-311.opt-1.pyc | File | 387 bytes | June 23 2025 15:48:01. | |
__init__.cpython-311.opt-2.pyc | File | 387 bytes | June 23 2025 15:48:01. | |
__init__.cpython-311.pyc | File | 387 bytes | June 23 2025 15:48:01. | |
__main__.cpython-311.opt-1.pyc | File | 331 bytes | June 23 2025 15:48:01. | |
__main__.cpython-311.opt-2.pyc | File | 331 bytes | June 23 2025 15:48:01. | |
__main__.cpython-311.pyc | File | 331 bytes | June 23 2025 15:48:01. | |
btm_matcher.cpython-311.opt-1.pyc | File | 7814 bytes | June 23 2025 15:48:01. | |
btm_matcher.cpython-311.opt-2.pyc | File | 6264 bytes | June 23 2025 15:48:05. | |
btm_matcher.cpython-311.pyc | File | 7814 bytes | June 23 2025 15:48:01. | |
btm_utils.cpython-311.opt-1.pyc | File | 11530 bytes | June 23 2025 15:48:01. | |
btm_utils.cpython-311.opt-2.pyc | File | 10056 bytes | June 23 2025 15:48:05. | |
btm_utils.cpython-311.pyc | File | 11530 bytes | June 23 2025 15:48:01. | |
fixer_base.cpython-311.opt-1.pyc | File | 8431 bytes | June 23 2025 15:48:01. | |
fixer_base.cpython-311.opt-2.pyc | File | 5752 bytes | June 23 2025 15:48:06. | |
fixer_base.cpython-311.pyc | File | 8431 bytes | June 23 2025 15:48:01. | |
fixer_util.cpython-311.opt-1.pyc | File | 22381 bytes | June 23 2025 15:48:01. | |
fixer_util.cpython-311.opt-2.pyc | File | 20368 bytes | June 23 2025 15:48:06. | |
fixer_util.cpython-311.pyc | File | 22381 bytes | June 23 2025 15:48:01. | |
main.cpython-311.opt-1.pyc | File | 15220 bytes | June 23 2025 15:48:03. | |
main.cpython-311.opt-2.pyc | File | 13484 bytes | June 23 2025 15:48:05. | |
main.cpython-311.pyc | File | 15266 bytes | June 23 2025 15:48:01. | |
patcomp.cpython-311.opt-1.pyc | File | 10223 bytes | June 23 2025 15:48:03. | |
patcomp.cpython-311.opt-2.pyc | File | 9744 bytes | June 23 2025 15:48:05. | |
patcomp.cpython-311.pyc | File | 10725 bytes | June 23 2025 15:48:01. | |
pygram.cpython-311.opt-1.pyc | File | 2070 bytes | June 23 2025 15:48:01. | |
pygram.cpython-311.opt-2.pyc | File | 1873 bytes | June 23 2025 15:48:05. | |
pygram.cpython-311.pyc | File | 2070 bytes | June 23 2025 15:48:01. | |
pytree.cpython-311.opt-1.pyc | File | 35210 bytes | June 23 2025 15:48:03. | |
pytree.cpython-311.opt-2.pyc | File | 26861 bytes | June 23 2025 15:48:05. | |
pytree.cpython-311.pyc | File | 36993 bytes | June 23 2025 15:48:01. | |
refactor.cpython-311.opt-1.pyc | File | 38444 bytes | June 23 2025 15:48:03. | |
refactor.cpython-311.opt-2.pyc | File | 34539 bytes | June 23 2025 15:48:05. | |
refactor.cpython-311.pyc | File | 38526 bytes | June 23 2025 15:48:01. |
� !A?h� � �� � d Z dZddlZddlmZmZmZmZmZm Z ddl mZ ddl mZ G d� d e � � Zd � Z G d� de� � Zej ej ej dd �Zd� Zd� Zd� 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 � � e Zd ZdS )�PatternSyntaxErrorN)�__name__� __module__�__qualname__� � �6/opt/alt/python311/lib64/python3.11/lib2to3/patcomp.pyr r s � � � � � ��Dr r c # �� K � t j t j t j h}t j t j | � � j � � }|D ]}|\ }}}}}||vr|V � �dS )z6Tokenizes a string suppressing significant whitespace.N) r �NEWLINE�INDENT�DEDENTr �generate_tokens�io�StringIO�readline) �input�skip�tokens� quintuple�type�value�start�end� line_texts r �tokenize_wrapperr% ss � � � ��M�5�<���6�D� � %�b�k�%�&8�&8�&A� B� B�F�� � � �-6�*��e�U�C���t����O�O�O��� r c �2 � e Zd Zdd�Zd d�Zd� Zdd�Zd� ZdS ) �PatternCompilerNc �L � |�#t j | _ t j | _ n7t j |� � | _ t j | j � � | _ t j | _ t j | _ t j | j t �� � | _ dS )z^Initializer. Takes an optional alternative filename for the pattern grammar. N)�convert)r �pattern_grammarr �pattern_symbols�symsr �load_grammar�Symbols�python_grammar� pygrammar�python_symbols�pysyms�Driver�pattern_convert)�self�grammar_files r �__init__zPatternCompiler.__init__( su � � ��!�1�D�L��.�D�I�I�!�.�|�<�<�D�L���t�|�4�4�D�I��.����+����m�D�L�/�J�J�J����r Fc � � t |� � } | j � ||�� � }n4# t j $ r"}t t |� � � � d�d}~ww xY w|r| � |� � |fS | � |� � S )z=Compiles a pattern string to a nested pytree.*Pattern object.)�debugN)r% r �parse_tokensr � ParseErrorr �str�compile_node)r5 r r9 � with_treer �root�es r �compile_patternzPatternCompiler.compile_pattern7 s� � �!�%�(�(�� 7��;�+�+�F�%�+�@�@�D�D���� 7� 7� 7�$�S��V�V�,�,�$�6����� 7����� +��$�$�T�*�*�D�0�0��$�$�T�*�*�*s �. �A�A�Ac � � � |j � j j k r |j d }|j � j j k rl� fd�|j ddd� D � � }t |� � dk r|d S t j d� |D � � dd�� � }|� � � S |j � j j k rZ� fd�|j D � � }t |� � dk r|d S t j |gdd�� � }|� � � S |j � j j k rJ� � |j dd� � � }t j |� � }|� � � S |j � j j k sJ �d}|j }t |� � d k r2|d j t j k r|d j }|dd� }d}t |� � dk r-|d j � j j k r|d }|dd � }� � ||� � }|��:|j � j j k sJ �|j } | d } | j t j k rd}t j }n�| j t j k rd}t j }n�| j t j k r|| d j t j k sJ �t | � � dv sJ �� � | d � � x}}t | � � dk r� � | d � � }nJ �|dk s|dk r-|� � � }t j |gg||�� � }|�||_ |� � � S ) zXCompiles a node, recursively. This is one big switch on the node type. r c �: �� g | ]}�� |� � ��S r �r= ��.0�chr5 s �r � <listcomp>z0PatternCompiler.compile_node.<locals>.<listcomp>O s'