o
    Õ?Hhë  ã                   @   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 )zÚ
For the ``future`` package.

Adds this import line::

    from builtins import XYZ

for each of the functions XYZ that is used in the module.

Adds these imports after any other imports (in an initial block of them).
é    )Úunicode_literals)Ú
fixer_base)Úpython_symbols)ÚNameÚCallÚin_special_context)Útouch_import_topzsfilter map zip
                       ascii chr hex input next oct
                       bytes range str raw_inputú|c                 C   s   g | ]}d   |¡‘qS )z
name='{0}')Úformat)Ú.0Úname© r   úe/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/libfuturize/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é   zä
              power<
                 ({0}) trailer< '(' [arglist=any] ')' >
              rest=any* >
              |
              power<
                  'map' trailer< '(' [arglist=any] ')' >
              >
              c                 C   s   |d }t d|j|ƒ d S )Nr   Úbuiltins)r   Úvalue)ÚselfÚnodeÚresultsr   r   r   r   Ú	transform8   s   zFixFutureBuiltins.transformN)	Ú__name__Ú
__module__Ú__qualname__ÚBM_compatibleÚ	run_orderr
   Ú
expressionÚPATTERNr   r   r   r   r   r   '   s    ø
r   N)Ú__doc__Ú
__future__r   Úlib2to3r   Úlib2to3.pygramr   ÚsymsÚlib2to3.fixer_utilr   r   r   Úlibfuturize.fixer_utilr   ÚsplitÚreplaced_builtin_fnsÚjoinr   ÚBaseFixr   r   r   r   r   Ú<module>   s    þ	