Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_zip.cpython-311.pyc
�

�,d	��h�dZddlmZddlmZddlmZddlm	Z	m
Z
mZGd�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� �eZdZdZdZdZd�ZdS)�FixZipTzN
    power< 'zip' args=trailer< '(' [any] ')' > [trailers=trailer*]
    >
    zfuture_builtins.zipc���|�|��rdSt|��rdS|d���}d|_g}d|vrd�|dD��}|D]	}d|_�
t	t
jtd��|gd���}t	t
jtd��t|g��g|z��}|j|_|S)N�args��trailersc�6�g|]}|�����S�)�clone)�.0�ns  �</opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_zip.py�
<listcomp>z$FixZip.transform.<locals>.<listcomp>'s ��?�?�?�a����	�	�?�?�?��zip)�prefix�list)	�should_skiprrrr�syms�powerrr)�self�node�resultsrrr�news       r�	transformzFixZip.transforms������D�!�!�	��F��d�#�#�	��4��v��$�$�&�&��������� � �?�?�7�:�+>�?�?�?�H��
�
�������4�:��U���T�2�2�>�>�>���4�:��V���g�s�e�n�n�=��H�I�I���[��
��
rN)�__name__�
__module__�__qualname__�
BM_compatible�PATTERN�skip_onr!rrrr
r
s6�������M��G�
$�G�����rr
N)�__doc__r
r�pytreer�pygramrr�
fixer_utilrrr�ConditionalFixr
rrr�<module>r-s�����������������+�+�+�+�+�+�:�:�:�:�:�:�:�:�:�:������Z�
&�����r

ZeroDay Forums Mini