U
if @ s. d dl mZ d dlmZ G dd dejZdS ) )
fixer_base)Namec @ s* e Zd ZdZdZde ZdZdd ZdS )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] ')' > >
c C s d }|d d }d|krV|j dkrV|d |d }}|j}| | |j| |p^|j}|t|j dd |d d S )Nfunc it)ZifilterfalseZizip_longestdot )prefix)valuer removeparentreplacer )selfZnodeZresultsr r r r r @/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_itertools.py transform s
zFixItertools.transformN) __name__
__module____qualname__Z
BM_compatibleZit_funcslocalsZPATTERNZ run_orderr r r r r r s r N) r Z
fixer_utilr ZBaseFixr r r r r