o
     JAf                     @   s0   	 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 r+|j dvr+|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   2/usr/lib/python3.10/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    
