o
    Š�bc„  ã                   @   s2   d Z ddlmZ ddlmZ G dd„ dejƒZdS )z3Fix function attribute names (f.func_x -> f.__x__).é   )Ú
fixer_base)ÚNamec                   @   s   e Zd ZdZdZdd„ ZdS )ÚFixFuncattrsTzß
    power< any+ trailer< '.' attr=('func_closure' | 'func_doc' | 'func_globals'
                                  | 'func_name' | 'func_defaults' | 'func_code'
                                  | 'func_dict') > any* >
    c                 C   s2   |d d }|  td|jdd …  |jd�¡ d S )NÚattré    z__%s__é   )Úprefix)Úreplacer   Úvaluer   )ÚselfÚnodeÚresultsr   © r   ú2/usr/lib/python3.10/lib2to3/fixes/fix_funcattrs.pyÚ	transform   s   ÿzFixFuncattrs.transformN)Ú__name__Ú
__module__Ú__qualname__ÚBM_compatibleÚPATTERNr   r   r   r   r   r   	   s    r   N)Ú__doc__Ú r   Ú
fixer_utilr   ÚBaseFixr   r   r   r   r   Ú<module>   s    