File: //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_input.cpython-35.pyc
��Yf�  �               @   sh   d  Z  d d l m Z d d l m Z m Z d d l m Z e j d � Z Gd 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   sM   t  j | j j � r d  S| j �  } d | _ t t d � | g d | j �S)N� �eval�prefix)�context�match�parentZcloner	   r   r   )�selfZnodeZresults�new� r   �</opt/alt/python35/lib64/python3.5/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   Zcompile_patternr
   ZBaseFixr   r   r   r   r   �<module>   s