File: //opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_execfile.pyc
�
�A�[c           @  sY   d  Z  d d l m Z d d l m Z d d l m Z d Z d e j f d �  �  YZ	 d S(	   uo  
Fixer for the execfile() function on Py2, which was removed in Py3.
The Lib/lib2to3/fixes/fix_execfile.py module has some problems: see
python-future issue #37. This fixer merely imports execfile() from
past.builtins and leaves the code alone.
Adds this import line::
    from past.builtins import execfile
for the function execfile() that was removed from Py3.
i����(   t   unicode_literals(   t
   fixer_base(   t   touch_import_topu   name='execfile't   FixExecfilec           B  s,   e  Z e Z d  Z d j e � Z d �  Z RS(   i	   us   
              power<
                 ({0}) trailer< '(' args=[any] ')' >
              rest=any* >
              c         C  s!   | d } t  d | j | � d  S(   Nu   nameu
   past.builtins(   R   t   value(   t   selft   nodet   resultst   name(    (    sO   /opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_execfile.pyt	   transform#   s    
(	   t   __name__t
   __module__t   Truet
   BM_compatiblet	   run_ordert   formatt
   expressiont   PATTERNR	   (    (    (    sO   /opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_execfile.pyR      s   N(
   t   __doc__t
   __future__R    t   lib2to3R   t   libfuturize.fixer_utilR   R   t   BaseFixR   (    (    (    sO   /opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_execfile.pyt   <module>   s