a
    ´i  ã                   @   s.   d dl mZ d dlmZ G dd„ dejƒZdS )é   )Ú
fixer_base)ÚNamec                   @   s*   e Zd ZdZdZdeƒ  ZdZdd„ ZdS )Ú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|v rV|j dvrV|d |d  }}|j}| ¡  | ¡  |j |¡ |p^|j}| t|j dd … |d�¡ d S )NÚfuncé    Úit)ÚifilterfalseÚizip_longestÚdoté   )Úprefix)Úvaluer   ÚremoveÚparentÚreplacer   )ÚselfZnodeÚresultsr   r   r   r   © r   ú3/usr/lib64/python3.9/lib2to3/fixes/fix_itertools.pyÚ	transform   s    ÿ
zFixItertools.transformN)	Ú__name__Ú
__module__Ú__qualname__ZBM_compatibleZit_funcsÚlocalsZPATTERNZ	run_orderr   r   r   r   r   r      s   ú	r   N)Ú r   Z
fixer_utilr   ZBaseFixr   r   r   r   r   Ú<module>   s   