????

Your IP : 3.135.209.235


Current Path : /usr/lib/python3.6/site-packages/libfuturize/fixes/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/libfuturize/fixes/__pycache__/fix_future_builtins.cpython-36.pyc

3

�c��@szdZddlmZddlmZddlmZddlm	Z	m
Z
mZddlm
Z
dj�Zdjd	d
�eD��ZGdd�dej�Zd
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�|cCsg|]}dj|��qS)z
name='{0}')�format)�.0�name�r
�)/usr/lib/python3.6/fix_future_builtins.py�
<listcomp>$src@s&eZdZdZdZdje�Zdd�ZdS)�FixFutureBuiltinsT�z�
              power<
                 ({0}) trailer< '(' [arglist=any] ')' >
              rest=any* >
              |
              power<
                  'map' trailer< '(' [arglist=any] ')' >
              >
              cCs|d}td|j|�dS)Nr�builtins)r�value)�selfZnode�resultsrr
r
r�	transform8szFixFutureBuiltins.transformN)	�__name__�
__module__�__qualname__Z
BM_compatibleZ	run_orderr
�
expressionZPATTERNrr
r
r
rr's
rN)�__doc__Z
__future__rZlib2to3rZlib2to3.pygramrZsymsZlib2to3.fixer_utilrrrZlibfuturize.fixer_utilr�splitZreplaced_builtin_fns�joinrZBaseFixrr
r
r
r�<module>s