| Server IP : 66.29.146.62 / Your IP : 216.73.216.152 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python38/lib64/python3.8/lib2to3/fixes/__pycache__/ |
Upload File : |
U
i�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|�rd S |d �� }d|_g }d|krZdd� |d D �}|D ]
}d|_qNttjtd�|gdd�}ttjtd�t|g�g| �}|j|_|S ) N�args� �trailersc S s g | ]}|� � �qS � )�clone)�.0�nr r �:/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_zip.py�
<listcomp>'