Current Path: > > opt > alt > python37 > lib64 > python3.7 > 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-37.opt-1.pyc | File | 140 bytes | April 17 2024 17:36:13. | |
__init__.cpython-37.opt-2.pyc | File | 140 bytes | April 17 2024 17:35:53. | |
__init__.cpython-37.pyc | File | 140 bytes | April 17 2024 17:36:18. | |
__main__.cpython-37.opt-1.pyc | File | 224 bytes | April 17 2024 17:36:13. | |
__main__.cpython-37.opt-2.pyc | File | 224 bytes | April 17 2024 17:35:53. | |
__main__.cpython-37.pyc | File | 224 bytes | April 17 2024 17:36:19. | |
btm_matcher.cpython-37.opt-1.pyc | File | 4890 bytes | April 17 2024 17:36:13. | |
btm_matcher.cpython-37.opt-2.pyc | File | 3319 bytes | April 17 2024 17:35:53. | |
btm_matcher.cpython-37.pyc | File | 4890 bytes | April 17 2024 17:36:19. | |
btm_utils.cpython-37.opt-1.pyc | File | 6140 bytes | April 17 2024 17:36:13. | |
btm_utils.cpython-37.opt-2.pyc | File | 4620 bytes | April 17 2024 17:35:53. | |
btm_utils.cpython-37.pyc | File | 6140 bytes | April 17 2024 17:36:18. | |
fixer_base.cpython-37.opt-1.pyc | File | 6232 bytes | April 17 2024 17:36:13. | |
fixer_base.cpython-37.opt-2.pyc | File | 3471 bytes | April 17 2024 17:35:53. | |
fixer_base.cpython-37.pyc | File | 6232 bytes | April 17 2024 17:36:19. | |
fixer_util.cpython-37.opt-1.pyc | File | 12043 bytes | April 17 2024 17:36:13. | |
fixer_util.cpython-37.opt-2.pyc | File | 9875 bytes | April 17 2024 17:35:53. | |
fixer_util.cpython-37.pyc | File | 12043 bytes | April 17 2024 17:36:19. | |
main.cpython-37.opt-1.pyc | File | 8525 bytes | April 17 2024 17:36:13. | |
main.cpython-37.opt-2.pyc | File | 6770 bytes | April 17 2024 17:35:53. | |
main.cpython-37.pyc | File | 8559 bytes | April 17 2024 17:36:18. | |
patcomp.cpython-37.opt-1.pyc | File | 5366 bytes | April 17 2024 17:36:13. | |
patcomp.cpython-37.opt-2.pyc | File | 4856 bytes | April 17 2024 17:35:53. | |
patcomp.cpython-37.pyc | File | 5608 bytes | April 17 2024 17:36:18. | |
pygram.cpython-37.opt-1.pyc | File | 1195 bytes | April 17 2024 17:36:13. | |
pygram.cpython-37.opt-2.pyc | File | 990 bytes | April 17 2024 17:35:53. | |
pygram.cpython-37.pyc | File | 1195 bytes | April 17 2024 17:36:18. | |
pytree.cpython-37.opt-1.pyc | File | 24323 bytes | April 17 2024 17:36:13. | |
pytree.cpython-37.opt-2.pyc | File | 14929 bytes | April 17 2024 17:35:54. | |
pytree.cpython-37.pyc | File | 25000 bytes | April 17 2024 17:36:18. | |
refactor.cpython-37.opt-1.pyc | File | 20329 bytes | April 17 2024 17:36:13. | |
refactor.cpython-37.opt-2.pyc | File | 16281 bytes | April 17 2024 17:35:54. | |
refactor.cpython-37.pyc | File | 20362 bytes | April 17 2024 17:36:18. |
B � fk � @ s d Z dZddlZddlZddlZddlZddlZddlZddlZddl m Z ddlmZm Z mZ ddlmZ ddlmZmZ dd lmZ d!dd�ZG d d� de�Zdd� Zdd� Zdd� Zdd� Zdd� ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd � d e �Z"dS )"z�Refactoring framework. Used as a main program, this can refactor any number of files and/or recursively descend down directories. Imported as a module, this provides infrastructure to write your own refactoring tool. z#Guido van Rossum <guido@python.org>� N)�chain� )�driver�tokenize�token)� find_root)�pytree�pygram)�btm_matcherTc C sX t | g g dg�}g }x>t�|j�D ].\}}}|�d�r"|rF|dd� }|�|� q"W |S )zEReturn a sorted list of all available fix names in the given package.�*�fix_� N)� __import__�pkgutilZiter_modules�__path__� startswith�append)Z fixer_pkgZ remove_prefixZpkgZ fix_names�finder�nameZispkg� r �5/opt/alt/python37/lib64/python3.7/lib2to3/refactor.py�get_all_fix_names s r c @ s e Zd ZdS )� _EveryNodeN)�__name__� __module__�__qualname__r r r r r + s r c C s� t | tjtjf�r(| jdkr t�| jhS t | tj�rH| jrDt| j�S t�t | tj �r�t � }x*| jD ] }x|D ]}|�t|�� qlW qbW |S td| ��dS )zf Accepts a pytree Pattern Node and returns a set of the pattern types which will match first. Nz$Oh no! I don't understand pattern %s) � isinstancer ZNodePatternZLeafPattern�typer ZNegatedPatternZcontent�_get_head_typesZWildcardPattern�set�update� Exception)Zpat�r�p�xr r r r / s r c C s� t �t�}g }x�| D ]|}|jrjyt|j�}W n tk rJ |�|� Y q�X xB|D ]}|| �|� qRW q|jdk r�||j �|� q|�|� qW x,tt j j�� t j j �D ]}|| �|� q�W t|�S )z^ Accepts a list of fixers and returns a dictionary of head node type --> fixer list. N)�collections�defaultdict�list�patternr r r Z_accept_typer r �python_grammarZ symbol2number�values�tokens�extend�dict)Z fixer_listZ head_nodesZevery�fixerZheadsZ node_typer r r �_get_headnode_dictK s"