ó
ñsºec           @   sh   d  Z  d d l m Z d d l m Z m Z d d l m Z e j d ƒ Z d e j	 f d „  ƒ  YZ
 d S(	   s4   Fixer that changes input(...) into eval(input(...)).i   (   t
   fixer_base(   t   Callt   Name(   t   patcomps&   power< 'eval' trailer< '(' any ')' > >t   FixInputc           B   s   e  Z e Z d  Z d „  Z RS(   sL   
              power< 'input' args=trailer< '(' [any] ')' > >
              c         C   sM   t  j | j j ƒ r d  S| j ƒ  } d | _ t t d ƒ | g d | j ƒS(   Nu    u   evalt   prefix(   t   contextt   matcht   parentt   cloneR   R   R   (   t   selft   nodet   resultst   new(    (    s-   /usr/lib/python2.7/lib2to3/fixes/fix_input.pyt	   transform   s
    	(   t   __name__t
   __module__t   Truet   BM_compatiblet   PATTERNR   (    (    (    s-   /usr/lib/python2.7/lib2to3/fixes/fix_input.pyR      s   N(   t   __doc__t    R    t
   fixer_utilR   R   R   t   compile_patternR   t   BaseFixR   (    (    (    s-   /usr/lib/python2.7/lib2to3/fixes/fix_input.pyt   <module>   s
   