
müY  ã               @   s=   d  d l  m Z d  d l m Z Gd 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 | k rq | j  d	 k rq | d | d } } | j } | j ƒ  | j ƒ  | j j | ƒ | p} | j } | j t | j  d d  … d | ƒƒ d  S)
NÚfuncé    ÚitÚifilterfalseÚizip_longestÚdoté   Úprefix)zifilterfalsezizip_longest)Úvaluer   ÚremoveÚparentÚreplacer   )ÚselfZnodeÚresultsr   r   r   r   © r   úN/build/mts/release/bora-5583004/publish/lin64/lib64/python3.5/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   