| l d dl Z ddlmZ ddlmZ ddlmZ G d de Z G d d e Z dS )
N )PatternCompiler)pygram)does_tree_importc e Zd Z dZdZdZdZdZ ej d Z
e ZdZ
dZdZdZdZdZej Zd Zd Zd Zd Zd
ZddZd
ZddZd Zd Zd Z dS )BaseFixNr postF c L || _ || _ | d S N)optionslogcompile_pattern)selfr
r s ?/opt/alt/python-internal/lib64/python3.11/lib2to3/fixer_base.py__init__zBaseFix.__init__/ s/ c | j 9t }| | j d \ | _ | _ d S d S )NT) with_tree)PATTERNr r patternpattern_tree)r PCs r r zBaseFix.compile_pattern; sX
<# ""B.0.@.@KO /A /Q /Q+DL$+++ $#r c || _ d S r )filename)r r s r set_filenamezBaseFix.set_filenameF s !
r c F d|i}| j || o|S )Nnode)r matchr r resultss r r z
BaseFix.matchM s/ 4.|!!$00