AlkantarClanX12
Current Path : /opt/alt/python310/lib64/python3.10/lib2to3/fixes/__pycache__/ |
Current File : //opt/alt/python310/lib64/python3.10/lib2to3/fixes/__pycache__/fix_zip.cpython-310.opt-1.pyc |
o 6��f � @ sR d Z ddlmZ ddlmZ ddlmZ ddlm Z m Z mZ G dd� dej�Z dS ) a7 Fixer that changes zip(seq0, seq1, ...) into list(zip(seq0, seq1, ...) unless there exists a 'from future_builtins import zip' statement in the top-level namespace. We avoid the transformation if the zip() call is directly contained in iter(<>), list(<>), tuple(<>), sorted(<>), ...join(<>), or for V in <>:. � )� fixer_base)�Node)�python_symbols)�Name�ArgList�in_special_contextc @ s e Zd ZdZdZdZdd� ZdS )�FixZipTzN power< 'zip' args=trailer< '(' [any] ')' > [trailers=trailer*] > zfuture_builtins.zipc C s� | � |�rd S t|�r d S |d �� }d|_g }d|v r-dd� |d D �}|D ]}d|_q'ttjtd�|gdd�}ttjtd�t|g�g| �}|j|_|S ) N�args� �trailersc S s g | ]}|� � �qS � )�clone)�.0�nr r �</opt/alt/python310/lib64/python3.10/lib2to3/fixes/fix_zip.py� <listcomp>'