a
    Wä%b™  ã                   @   sB   d Z ddlmZ ddlmZ ddlmZ dZG dd„ dejƒZ	dS )	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                   @   s&   e Zd ZdZdZd e¡Zdd„ ZdS )ÚFixExecfileTé	   zs
              power<
                 ({0}) trailer< '(' args=[any] ')' >
              rest=any* >
              c                 C   s   |d }t d|j|ƒ d S )NÚnamezpast.builtins)r   Úvalue)ÚselfÚnodeÚresultsr   © r   ún/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/libfuturize/fixes/fix_execfile.pyÚ	transform#   s    zFixExecfile.transformN)	Ú__name__Ú
__module__Ú__qualname__ZBM_compatibleZ	run_orderÚformatÚ
expressionZPATTERNr   r   r   r   r   r      s   ür   N)
Ú__doc__Ú
__future__r   Zlib2to3r   Zlibfuturize.fixer_utilr   r   ZBaseFixr   r   r   r   r   Ú<module>   s
   