$65 GRAYBYTE WORDPRESS FILE MANAGER $51

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python311/lib64/python3.11/lib2to3/__pycache__/

HOME
Current File : /opt/alt/python311/lib64/python3.11/lib2to3/__pycache__//fixer_base.cpython-311.opt-1.pyc
�

���h"��n�dZddlZddlmZddlmZddlmZGd�de��Z	Gd	�d
e	��Z
dS)z2Base class for fixers (optional, but recommended).�N�)�PatternCompiler)�pygram)�does_tree_importc���eZdZdZdZdZdZdZdZe	j
d��Ze��Z
dZdZdZdZdZdZejZd�Zd�Zd	�Zd
�Zd�Zdd
�Zd�Zdd�Zd�Zd�Z d�Z!dS)�BaseFixaOptional base class for fixers.

    The subclass name must be FixFooBar where FooBar is the result of
    removing underscores and capitalizing the words of the fix name.
    For example, the class name for a fixer named 'has_key' should be
    FixHasKey.
    Nr�postF�c�J�||_||_|���dS)aInitializer.  Subclass may override.

        Args:
            options: a dict containing the options passed to RefactoringTool
            that could be used to customize the fixer through the command line.
            log: a list to append warnings and other messages to.
        N)�options�log�compile_pattern)�selfrr
s   �9/opt/alt/python311/lib64/python3.11/lib2to3/fixer_base.py�__init__zBaseFix.__init__/s*����������������c��|j�9t��}|�|jd���\|_|_dSdS)z�Compiles self.PATTERN into self.pattern.

        Subclass may override if it doesn't want to use
        self.{pattern,PATTERN} in .match().
        NT)�	with_tree)�PATTERNrr�pattern�pattern_tree)r�PCs  rrzBaseFix.compile_pattern;sS���<�#� �"�"�B�.0�.@�.@���KO�/A�/Q�/Q�+�D�L�$�+�+�+�$�#rc��||_dS)zOSet the filename.

        The main refactoring tool should call this.
        N)�filename)rrs  r�set_filenamezBaseFix.set_filenameFs��
!��
�
�
rc�D�d|i}|j�||��o|S)aReturns match for a given parse tree node.

        Should return a true or false object (not necessarily a bool).
        It may return a non-empty dict of matching sub-nodes as
        returned by a matching pattern.

        Subclass may override.
        �node)r�match�rr�resultss   rrz
BaseFix.matchMs*���4�.���|�!�!�$��0�0�<�W�<rc��t���)a�Returns the transformation for a given parse tree node.

        Args:
          node: the root of the parse tree that matched the fixer.
          results: a dict mapping symbolic names to part of the match.

        Returns:
          None, or a node that is a modified copy of the
          argument node.  The node argument may also be modified in-place to
          effect the same change.

        Subclass *must* override.
        )�NotImplementedErrorrs   r�	transformzBaseFix.transformYs��"�#�#�#r�xxx_todo_changemec��|}||jvr-|tt|j����z}||jv�-|j�|��|S)z�Return a string suitable for use as an identifier

        The new name is guaranteed not to conflict with other identifiers.
        )�
used_names�str�next�numbers�add)r�template�names   r�new_namezBaseFix.new_nameis\��
���d�o�%�%��c�$�t�|�"4�"4�5�5�5�D��d�o�%�%�����D�!�!�!��rc��|jr)d|_|j�d|jz��|j�|��dS)NFz### In file %s ###)�	first_logr
�appendr)r�messages  r�log_messagezBaseFix.log_messagetsJ���>�	B�"�D�N��H�O�O�0�4�=�@�A�A�A������ � � � � rc���|���}|���}d|_d}|�|||fz��|r|�|��dSdS)aWarn the user that a given chunk of code is not valid Python 3,
        but that it cannot be converted automatically.

        First argument is the top-level node for the code in question.
        Optional second argument is why it can't be converted.
        �zLine %d: could not convert: %sN)�
get_lineno�clone�prefixr2)rr�reason�lineno�
for_output�msgs      r�cannot_convertzBaseFix.cannot_convertzsw�����"�"���Z�Z�\�\�
��
��.�������
�3�3�4�4�4��	%����V�$�$�$�$�$�	%�	%rc�b�|���}|�d||fz��dS)z�Used for warning the user about possible uncertainty in the
        translation.

        First argument is the top-level node for the code in question.
        Optional second argument is why it can't be converted.
        zLine %d: %sN)r5r2)rrr8r9s    r�warningzBaseFix.warning�s7�����"�"������&�&�)9�9�:�:�:�:�:rc��|j|_|�|��tjd��|_d|_dS)z�Some fixers need to maintain tree-wide state.
        This method is called once, at the start of tree fix-up.

        tree - the root node of the tree to be processed.
        filename - the name of the file the tree came from.
        rTN)r&r�	itertools�countr)r/�r�treers   r�
start_treezBaseFix.start_tree�s=���/������(�#�#�#� ��q�)�)�������rc��dS)z�Some fixers need to maintain tree-wide state.
        This method is called once, at the conclusion of tree fix-up.

        tree - the root node of the tree to be processed.
        filename - the name of the file the tree came from.
        N�rBs   r�finish_treezBaseFix.finish_tree�s	��	
�r)r$�N)"�__name__�
__module__�__qualname__�__doc__rrrrrr@rAr)�setr&�order�explicit�	run_order�_accept_type�keep_line_order�
BM_compatibler�python_symbols�symsrrrrr#r-r2r<r>rDrGrFrrrrs1���������G��G��L��G��H��i�o�a� � �G�����J��E��H��I��L��O��M�
� �D�
�
�
�	Q�	Q�	Q�!�!�!�
=�
=�
=�$�$�$� 	�	�	�	�!�!�!�
%�
%�
%�
%�;�;�;�
�
�
�
�
�
�
�
rrc�,��eZdZdZdZ�fd�Zd�Z�xZS)�ConditionalFixz@ Base class for fixers which not execute if an import is found. Nc�P��tt|��j|�d|_dSrH)�superrWrD�_should_skip)r�args�	__class__s  �rrDzConditionalFix.start_tree�s+���.��n�d�#�#�.��5�5� ����rc���|j�|jS|j�d��}|d}d�|dd���}t	|||��|_|jS)N�.���)rZ�skip_on�split�joinr)rr�pkgr,s    r�should_skipzConditionalFix.should_skip�sh����(��$�$��l� � ��%�%���2�w���h�h�s�3�B�3�x� � ��,�S�$��=�=���� � r)rIrJrKrLr`rDrd�
__classcell__)r\s@rrWrW�sT�������J�J��G�!�!�!�!�!�!�!�!�!�!�!�!rrW)rLr@�patcomprr4r�
fixer_utilr�objectrrWrFrr�<module>ris���9�8�����%�$�$�$�$�$�������(�(�(�(�(�(�X
�X
�X
�X
�X
�f�X
�X
�X
�v!�!�!�!�!�W�!�!�!�!�!r


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.39 AM
root / linksafe
0755
__init__.cpython-311.opt-1.pyc
0.378 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__init__.cpython-311.opt-2.pyc
0.378 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__init__.cpython-311.pyc
0.378 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__main__.cpython-311.opt-1.pyc
0.323 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__main__.cpython-311.opt-2.pyc
0.323 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__main__.cpython-311.pyc
0.323 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
btm_matcher.cpython-311.opt-1.pyc
7.631 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
btm_matcher.cpython-311.opt-2.pyc
6.117 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
btm_matcher.cpython-311.pyc
7.631 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
btm_utils.cpython-311.opt-1.pyc
11.26 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
btm_utils.cpython-311.opt-2.pyc
9.82 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
btm_utils.cpython-311.pyc
11.26 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
fixer_base.cpython-311.opt-1.pyc
8.233 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
fixer_base.cpython-311.opt-2.pyc
5.617 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
fixer_base.cpython-311.pyc
8.233 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
fixer_util.cpython-311.opt-1.pyc
21.856 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
fixer_util.cpython-311.opt-2.pyc
19.891 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
fixer_util.cpython-311.pyc
21.856 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
main.cpython-311.opt-1.pyc
14.863 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
main.cpython-311.opt-2.pyc
13.168 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
main.cpython-311.pyc
14.908 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
patcomp.cpython-311.opt-1.pyc
9.983 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
patcomp.cpython-311.opt-2.pyc
9.516 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
patcomp.cpython-311.pyc
10.474 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
pygram.cpython-311.opt-1.pyc
2.021 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
pygram.cpython-311.opt-2.pyc
1.829 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
pygram.cpython-311.pyc
2.021 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
pytree.cpython-311.opt-1.pyc
34.385 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
pytree.cpython-311.opt-2.pyc
26.231 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
pytree.cpython-311.pyc
36.126 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
refactor.cpython-311.opt-1.pyc
37.543 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
refactor.cpython-311.opt-2.pyc
33.729 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
refactor.cpython-311.pyc
37.623 KB
7 Jan 2026 10.45 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF