File: //lib64/python3.9/lib2to3/fixes/__pycache__/fix_input.cpython-39.opt-1.pyc
a
    �DOg�  �                   @   sL   d Z ddlmZ ddlmZmZ ddlmZ e�d�ZG dd� dej	�Z
dS )	z4Fixer that changes input(...) into eval(input(...)).�   )�
fixer_base)�Call�Name)�patcompz&power< 'eval' trailer< '(' any ')' > >c                   @   s   e Zd ZdZdZdd� ZdS )�FixInputTzL
              power< 'input' args=trailer< '(' [any] ')' > >
              c                 C   s6   t �|jj�rd S |�� }d|_ttd�|g|jd�S )N� �eval)�prefix)�context�match�parentZcloner	   r   r   )�selfZnode�results�new� r   �//usr/lib64/python3.9/lib2to3/fixes/fix_input.py�	transform   s
    zFixInput.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNr   r   r   r   r   r   
   s   r   N)�__doc__r   r   Z
fixer_utilr   r   r   �compile_patternr
   ZBaseFixr   r   r   r   r   �<module>   s