$82 GRAYBYTE WORDPRESS FILE MANAGER $89

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/python37/lib64/python3.7/lib2to3/__pycache__/

HOME
Current File : /opt/alt/python37/lib64/python3.7/lib2to3/__pycache__//fixer_base.cpython-37.pyc
B

� f"�@sTdZddlZddlmZddlmZddlmZGdd�de�Z	Gd	d
�d
e	�Z
dS)z2Base class for fixers (optional, but recommended).�N�)�PatternCompiler)�pygram)�does_tree_importc@s�eZdZdZdZdZdZdZdZe	�
d�Ze�Z
dZdZdZdZdZdZejZdd�Zd	d
�Zdd�Zd
d�Zdd�Zddd�Zdd�Zddd�Zdd�Zdd�Z dd�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.
    NrZpostF�cCs||_||_|��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)�selfrr	�r�7/opt/alt/python37/lib64/python3.7/lib2to3/fixer_base.py�__init__/szBaseFix.__init__cCs,|jdk	r(t�}|j|jdd�\|_|_dS)z�Compiles self.PATTERN into self.pattern.

        Subclass may override if it doesn't want to use
        self.{pattern,PATTERN} in .match().
        NT)Z	with_tree)�PATTERNrr
�pattern�pattern_tree)rZPCrrr
r
;s
zBaseFix.compile_patterncCs
||_dS)zOSet the filename.

        The main refactoring tool should call this.
        N)�filename)rrrrr
�set_filenameFszBaseFix.set_filenamecCsd|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�resultsrrr
rMs	z
BaseFix.matchcCs
t��dS)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.
        N)�NotImplementedError)rrrrrr
�	transformYszBaseFix.transform�xxx_todo_changemecCs6|}x ||jkr$|tt|j��}qW|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�namerrr
�new_nameis
zBaseFix.new_namecCs.|jrd|_|j�d|j�|j�|�dS)NFz### In file %s ###)�	first_logr	�appendr)r�messagerrr
�log_messagetszBaseFix.log_messagecCs>|��}|��}d|_d}|�|||f�|r:|�|�dS)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_linenoZclone�prefixr%)rr�reason�linenoZ
for_output�msgrrr
�cannot_convertzszBaseFix.cannot_convertcCs|��}|�d||f�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)r'r%)rrr)r*rrr
�warning�szBaseFix.warningcCs(|j|_|�|�t�d�|_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)rr�	itertools�countrr")r�treerrrr
�
start_tree�s
zBaseFix.start_treecCsdS)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.
        Nr)rr0rrrr
�finish_tree�szBaseFix.finish_tree)r)N)"�__name__�
__module__�__qualname__�__doc__rrrrrr.r/r�setr�orderZexplicitZ	run_orderZ_accept_typeZkeep_line_orderZ
BM_compatiblerZpython_symbolsZsymsrr
rrrr!r%r,r-r1r2rrrr
rs4



rcs,eZdZdZdZ�fdd�Zdd�Z�ZS)�ConditionalFixz@ Base class for fixers which not execute if an import is found. Ncstt|�j|�d|_dS)N)�superr9r1�_should_skip)r�args)�	__class__rr
r1�szConditionalFix.start_treecCsJ|jdk	r|jS|j�d�}|d}d�|dd��}t|||�|_|jS)N�.���)r;�skip_on�split�joinr)rrZpkgr rrr
�should_skip�s
zConditionalFix.should_skip)r3r4r5r6r@r1rC�
__classcell__rr)r=r
r9�sr9)r6r.Zpatcomprr&rZ
fixer_utilr�objectrr9rrrr
�<module>s


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.34 AM
root / linksafe
0755
__init__.cpython-37.opt-1.pyc
0.137 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
__init__.cpython-37.opt-2.pyc
0.137 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
__init__.cpython-37.pyc
0.137 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
__main__.cpython-37.opt-1.pyc
0.219 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
__main__.cpython-37.opt-2.pyc
0.219 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
__main__.cpython-37.pyc
0.219 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
btm_matcher.cpython-37.opt-1.pyc
4.775 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
btm_matcher.cpython-37.opt-2.pyc
3.241 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
btm_matcher.cpython-37.pyc
4.775 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
btm_utils.cpython-37.opt-1.pyc
5.996 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
btm_utils.cpython-37.opt-2.pyc
4.512 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
btm_utils.cpython-37.pyc
5.996 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
fixer_base.cpython-37.opt-1.pyc
6.086 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
fixer_base.cpython-37.opt-2.pyc
3.39 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
fixer_base.cpython-37.pyc
6.086 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
fixer_util.cpython-37.opt-1.pyc
11.761 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
fixer_util.cpython-37.opt-2.pyc
9.644 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
fixer_util.cpython-37.pyc
11.761 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
main.cpython-37.opt-1.pyc
8.325 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
main.cpython-37.opt-2.pyc
6.611 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
main.cpython-37.pyc
8.358 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
patcomp.cpython-37.opt-1.pyc
5.24 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
patcomp.cpython-37.opt-2.pyc
4.742 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
patcomp.cpython-37.pyc
5.477 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
pygram.cpython-37.opt-1.pyc
1.167 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
pygram.cpython-37.opt-2.pyc
0.967 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
pygram.cpython-37.pyc
1.167 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
pytree.cpython-37.opt-1.pyc
23.753 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
pytree.cpython-37.opt-2.pyc
14.579 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
pytree.cpython-37.pyc
24.414 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
refactor.cpython-37.opt-1.pyc
19.853 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
refactor.cpython-37.opt-2.pyc
15.899 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
refactor.cpython-37.pyc
19.885 KB
17 Apr 2024 5.36 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF