î
\á[\Ã  ã               @   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ÚparentZcloner	   r   r   )ÚselfZnodeZresultsÚnew© r   ú-/usr/lib/python3.4/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   Zcompile_patternr
   ZBaseFixr   r   r   r   r   Ú<module>   s
   