o
     JAf                     @   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parentZcloner	   r   r   )selfZnoderesultsnew r   ./usr/lib/python3.10/lib2to3/fixes/fix_input.py	transform   s
   zFixInput.transformN)__name__
__module____qualname__ZBM_compatibleZPATTERNr   r   r   r   r   r      s    r   N)__doc__r   r   Z
fixer_utilr   r   r   compile_patternr
   ZBaseFixr   r   r   r   r   <module>   s    
