�
c��j" � �^ � d dl Z ddlmZ ddlmZ ddlmZ G d� de� Z G d� d e� Z y)
� N� )�PatternCompiler)�pygram)�does_tree_importc �� � e Zd Z dZdZdZdZdZ ej d� Z
e� ZdZ
dZdZdZdZdZej( Zd� Zd� Zd� Zd � Zd
� Zdd�Zd� Zdd
�Zd� Zd� Zd� Z y)�BaseFixNr �postF� c �B � || _ || _ | j � y �N)�options�log�compile_pattern)�selfr
r s �+/usr/lib64/python3.12/lib2to3/fixer_base.py�__init__zBaseFix.__init__/ s# � � � ���������� c � � | j �5t � }|j | j d�� \ | _ | _ y y )NT)� with_tree)�PATTERNr r �pattern�pattern_tree)r �PCs r r zBaseFix.compile_pattern; sJ � � �
�<�<�#� �"�B�.0�.@�.@����KO� /A� /Q�+�D�L�$�+� $r c � � || _ y r )�filename)r r s r �set_filenamezBaseFix.set_filenameF s � � � !��
r c �L � d|i}| j j ||� xr |S )N�node)r �match�r r �resultss r r z
BaseFix.matchM s. � � � �4�.���|�|�!�!�$��0�<�W�