Hacked By AnonymousFox

Current Path : /opt/alt/python310/lib64/python3.10/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/lib2to3/fixes/__pycache__/fix_itertools_imports.cpython-310.pyc

o

6��f&�@s:dZddlmZddlmZmZmZGdd�dej�ZdS)zA Fixer for imports of itertools.(imap|ifilter|izip|ifilterfalse) �)�
fixer_base)�	BlankLine�syms�tokenc@s"eZdZdZde�Zdd�ZdS)�FixItertoolsImportsTzT
              import_from< 'from' 'itertools' 'import' imports=any >
              cCsr|d}|jtjks
|js|g}n|j}|ddd�D]F}|jtjkr)|j}|}n|jtjkr2dS|jtjks:J�|jd}|j}|dvrNd|_|��q|dvra|�	�|ddkr^dnd	|_q|jdd�pk|g}d
}	|D]}|	r|jtj
kr|��qp|	d
N}	qp|r�|djtj
kr�|����|r�|djtj
ks�|js�t|dd�r�|j
dur�|j}
t�}|
|_|SdS)
N�imports�r)ZimapZizipZifilter)ZifilterfalseZizip_longest��f�filterfalse�zip_longestT����value)�typerZimport_as_name�childrenr�NAMEr�STAR�removeZchanged�COMMA�pop�getattr�parent�prefixr)�selfZnodeZresultsrr�child�memberZ	name_node�member_nameZremove_comma�p�r�J/opt/alt/python310/lib64/python3.10/lib2to3/fixes/fix_itertools_imports.py�	transformsL

��

�
�zFixItertoolsImports.transformN)�__name__�
__module__�__qualname__Z
BM_compatible�localsZPATTERNr rrrrrs�rN)	�__doc__Zlib2to3rZlib2to3.fixer_utilrrrZBaseFixrrrrr�<module>s

Hacked By AnonymousFox1.0, Coded By AnonymousFox