�`^c@sCdZddlmZddlmZdejfd��YZdS(sT Fixer for itertools.(imap|ifilter|izip) --> (map|filter|zip) and
itertools.ifilterfalse --> itertools.filterfalse (bugs 2360-2363)
imports from itertools are fixed in fix_itertools_import.py
If itertools is imported as something else (ie: import itertools as it;
it.izip(spam, eggs)) method calls will not get fixed.
i(t
fixer_base(tNametFixItertoolscBs0eZeZdZde�ZdZd�ZRS(s7('imap'|'ifilter'|'izip'|'izip_longest'|'ifilterfalse')s�
power< it='itertools'
trailer<
dot='.' func=%(it_funcs)s > trailer< '(' [any] ')' > >
|
power< func=%(it_funcs)s trailer< '(' [any] ')' > >
icCs�d}|dd}d|krt|jd krt|d|d}}|j}|j�|j�|jj|�n|p�|j}|jt|jdd|��dS(
Ntfuncitituifilterfalseuizip_longesttdotitprefix(uifilterfalseuizip_longest(tNonetvalueRtremovetparenttreplaceR(tselftnodetresultsRRRR((s1/sys/lib/python2.7/lib2to3/fixes/fix_itertools.pyt transforms
( t__name__t
__module__tTruet
BM_compatibletit_funcstlocalstPATTERNt run_orderR(((s1/sys/lib/python2.7/lib2to3/fixes/fix_itertools.pyRs
N(t__doc__tRt
fixer_utilRtBaseFixR(((s1/sys/lib/python2.7/lib2to3/fixes/fix_itertools.pyt<module>s
|