�
�Wc� c sN � d Z ddlmZ ddlmZ G d� dej
� ZdS )z3Fix function attribute names (f.func_x -> f.__x__).i )�
fixer_base)�Namec s � e Zd ZdZdZd� ZdS )�FixFuncattrsTz�
power< any+ trailer< '.' attr=('func_closure' | 'func_doc' | 'func_globals'
| 'func_name' | 'func_defaults' | 'func_code'
| 'func_dict') > any* >
c s� � |d d }|j t d|j dd z |j �� � d S )N�attri z__%s__i )�prefix)Zreplacer Zvaluer )ZselfZnodeZresultsr s �4/usr/lib64/python3.12/lib2to3/fixes/fix_funcattrs.py� transformzFixFuncattrs.transform sO � ��v��q�!�����T�8�d�j�j���n�4�!%���.� .� /� /� /� /� N)Z__name__Z
__module__Z__qualname__Z
BM_compatibleZPATTERNr � r r r r s/