
    daf                     J    d Z ddlmZ ddlmZ  G d dej
                        Zy)z3Fix function attribute names (f.func_x -> f.__x__).   )
fixer_base)Namec                       e Zd ZdZdZd Zy)FixFuncattrsTz
    power< any+ trailer< '.' attr=('func_closure' | 'func_doc' | 'func_globals'
                                  | 'func_name' | 'func_defaults' | 'func_code'
                                  | 'func_dict') > any* >
    c                     |d   d   }|j                  t        d|j                  dd  z  |j                               y )Nattr    z__%s__   )prefix)replacer   valuer   )selfnoderesultsr   s       6/root/Python-3.12.4/Lib/lib2to3/fixes/fix_funcattrs.py	transformzFixFuncattrs.transform   s;    vq!T8djjn4!%. 	/    N)__name__
__module____qualname__BM_compatiblePATTERNr    r   r   r   r   	   s    MG/r   r   N)__doc__ r   
fixer_utilr   BaseFixr   r   r   r   <module>r      s"    9  /:%% /r   