Hacked By AnonymousFox
o
6��fsk � @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z ddl
mZmZm
Z
ddlmZ ddlmZmZ ddlmZ d d
d�ZG dd
� d
e�Zdd� Zdd� Zdd� Zdd� Zdd� ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!dS )!z#Guido van Rossum <guido@python.org>� N)�chain� )�driver�tokenize�token)� find_root)�pytree�pygram)�btm_matcherTc C sV t | g g dg�}g }t�|j�D ]\}}}|�d�r(|r#|dd � }|�|� q|S )N�*�fix_� )�
__import__�pkgutilZiter_modules�__path__�
startswith�append)Z fixer_pkgZ
remove_prefixZpkgZ fix_names�finder�nameZispkg� r �7/opt/alt/python310/lib64/python3.10/lib2to3/refactor.py�get_all_fix_names s
�r c @ � e Zd ZdS )�
_EveryNodeN��__name__�
__module__�__qualname__r r r r r + � r c C s� t | tjtjf�r| jd u rt�| jhS t | tj�r%| jr#t| j�S t�t | tj �rBt
� }| jD ]}|D ] }|�t|�� q5q1|S td| ��)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"