U
    §òccª  ã                   @   sz   d Z ddlmZ ddlmZ ddlmZ ddlm	Z	m
Z
mZ ddlmZ d ¡ Zd d	d
„ eD ƒ¡ZG dd„ dejƒZdS )zq
Adds this import line:

    from builtins import XYZ

for each of the functions XYZ that is used in the module.
é    )Úunicode_literals)Ú
fixer_base)Úpython_symbols)ÚNameÚCallÚin_special_context)Útouch_import_topzƒfilter map zip
                       ascii chr hex input next oct open round super
                       bytes dict int range strú|c                 C   s   g | ]}d   |¡‘qS )z
name='{0}')Úformat)Ú.0Úname© r   úa/var/www/html/project/venv/lib/python3.8/site-packages/libpasteurize/fixes/fix_future_builtins.pyÚ
<listcomp>   s     r   c                   @   s&   e Zd ZdZdZd e¡Zdd„ ZdS )ÚFixFutureBuiltinsTé	   zs
              power<
                 ({0}) trailer< '(' args=[any] ')' >
              rest=any* >
              c                 C   s   |d }t d|j|ƒ d S )Nr   Úbuiltins)r   Úvalue)ÚselfÚnodeÚresultsr   r   r   r   Ú	transform+   s    zFixFutureBuiltins.transformN)	Ú__name__Ú
__module__Ú__qualname__ZBM_compatibleZ	run_orderr
   Ú
expressionZPATTERNr   r   r   r   r   r      s   ür   N)Ú__doc__Ú
__future__r   Zlib2to3r   Zlib2to3.pygramr   ZsymsZlib2to3.fixer_utilr   r   r   Zlibfuturize.fixer_utilr   ÚsplitZreplaced_builtinsÚjoinr   ZBaseFixr   r   r   r   r   Ú<module>   s   