U if @s.ddlmZddlmZGdddejZdS)) fixer_base)Namec@s*eZdZdZdZdeZdZddZdS) FixItertoolsTz7('imap'|'ifilter'|'izip'|'izip_longest'|'ifilterfalse')z power< it='itertools' trailer< dot='.' func=%(it_funcs)s > trailer< '(' [any] ')' > > | power< func=%(it_funcs)s trailer< '(' [any] ')' > > cCsd}|dd}d|krV|jdkrV|d|d}}|j}|||j||p^|j}|t|jdd|ddS)Nfuncit)Z ifilterfalseZ izip_longestdot)prefix)valuer removeparentreplacer)selfZnodeZresultsr rr rr@/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_itertools.py transforms   zFixItertools.transformN) __name__ __module__ __qualname__Z BM_compatibleZit_funcslocalsZPATTERNZ run_orderrrrrrrs rN)rZ fixer_utilrZBaseFixrrrrr s