o
     JAf9  ã                   @   s6   d Z ddlmZ ddlmZmZ G dd„ dejƒZdS )z5Fixer for reload().

reload(s) -> importlib.reload(s)é   )Ú
fixer_base)ÚImportAndCallÚtouch_importc                   @   s    e Zd ZdZdZdZdd„ ZdS )Ú	FixReloadTÚprezÿ
    power< 'reload'
           trailer< lpar='('
                    ( not(arglist | argument<any '=' any>) obj=any
                      | obj=arglist<(not argument<any '=' any>) any ','> )
                    rpar=')' >
           after=any*
    >
    c                 C   sR   |r|d }|r|j | jjkr|jd jdv rd S d}t|||ƒ}td d|ƒ |S )NÚobjé    >   Ú*z**)Ú	importlibÚreloadr
   )ÚtypeZsymsÚargumentÚchildrenÚvaluer   r   )ÚselfZnodeÚresultsr   ÚnamesÚnew© r   ú//usr/lib/python3.10/lib2to3/fixes/fix_reload.pyÚ	transform   s   zFixReload.transformN)Ú__name__Ú
__module__Ú__qualname__ZBM_compatibleÚorderZPATTERNr   r   r   r   r   r   
   s
    
r   N)Ú__doc__Ú r   Z
fixer_utilr   r   ZBaseFixr   r   r   r   r   Ú<module>   s    