B ÍAÒ[ëã@szdZddlmZddlmZddlmZddlm Z m Z m Z ddl m Z d ¡Zd d d „eDƒ¡ZGd d „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|]}d |¡‘qS)z name='{0}')Úformat)Ú.0Úname©r úV/opt/alt/python37/lib/python3.7/site-packages/libfuturize/fixes/fix_future_builtins.pyú $src@s&eZdZdZdZd e¡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)ÚselfZnodeZresultsr 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Ú s