Your IP : 3.144.242.149
o
6��f" � @ sR d dl Z ddlmZ ddlmZ ddlmZ G dd� de�ZG dd � d e�Z dS )
� N� )�PatternCompiler)�pygram)�does_tree_importc @ s� e Zd Z dZdZdZdZdZe� d�Z
e� ZdZ
dZdZdZdZdZejZdd� Zdd � Zd
d� Zdd
� Zdd� Zddd�Zdd� Zddd�Zdd� Zdd� Zdd� Z dS )�BaseFixNr ZpostF� c C s || _ || _| �� d S �N)�options�log�compile_pattern)�selfr r
� r
�9/opt/alt/python310/lib64/python3.10/lib2to3/fixer_base.py�__init__/ s zBaseFix.__init__c C s2 | j d urt� }|j| j dd�\| _| _d S d S )NT)Z with_tree)�PATTERNr r �pattern�pattern_tree)r ZPCr
r
r r ; s
��zBaseFix.compile_patternc C s || _ d S r )�filename)r r r
r
r �set_filenameF s
zBaseFix.set_filenamec C s d|i}| j �||�o
|S )N�node)r �match�r r Zresultsr
r
r r M s z
BaseFix.matchc C s t � �r )�NotImplementedErrorr r
r
r � transformY s
zBaseFix.transform�xxx_todo_changemec C s<