o
    Š�bcÄ  ã                   @   sL   d Z ddlmZ ddlmZmZ ddlmZ e d¡ZG dd„ dej	ƒZ
dS )	z4Fixer that changes input(...) into eval(input(...)).é   )Ú
fixer_base)ÚCallÚName)Úpatcompz&power< 'eval' trailer< '(' any ')' > >c                   @   s   e Zd ZdZdZdd„ ZdS )ÚFixInputTzL
              power< 'input' args=trailer< '(' [any] ')' > >
              c                 C   s6   t  |jj¡r	d S | ¡ }d|_ttdƒ|g|jd�S )NÚ Úeval)Úprefix)ÚcontextÚmatchÚparentÚcloner	   r   r   )ÚselfÚnodeÚresultsÚnew© r   ú./usr/lib/python3.10/lib2to3/fixes/fix_input.pyÚ	transform   s
   zFixInput.transformN)Ú__name__Ú
__module__Ú__qualname__ÚBM_compatibleÚPATTERNr   r   r   r   r   r      s    r   N)Ú__doc__r   r   Ú
fixer_utilr   r   r   Úcompile_patternr
   ÚBaseFixr   r   r   r   r   Ú<module>   s    
