
    Fwg                     Z    d Z ddlmZ ddlmZ ddlmZ dZ G d dej                        Z	y)	ao  
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.
    )unicode_literals)
fixer_base)touch_import_topzname='execfile'c                   <    e Zd ZdZdZdj                  e      Zd Zy)FixExecfileT	   zs
              power<
                 ({0}) trailer< '(' args=[any] ')' >
              rest=any* >
              c                 <    |d   }t        d|j                  |       y )Nnamezpast.builtins)r   value)selfnoderesultsr
   s       U/var/www/horilla/myenv/lib/python3.12/site-packages/libfuturize/fixes/fix_execfile.py	transformzFixExecfile.transform#   s    v)4::t<    N)	__name__
__module____qualname__BM_compatible	run_orderformat
expressionPATTERNr    r   r   r   r      s'    MI &$	 =r   r   N)
__doc__
__future__r   lib2to3r   libfuturize.fixer_utilr   r   BaseFixr   r   r   r   <module>r       s.    (  3 
=*$$ =r   