AlkantarClanX12

Your IP : 3.141.47.163


Current Path : /opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/fix_zip.cpython-34.pyo

�
j f��@sOdZddlmZddlmZmZmZGdd�dej�ZdS)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)�Name�Call�in_special_contextc@s.eZdZdZdZdZdd�ZdS)�FixZipTz:
    power< 'zip' args=trailer< '(' [any] ')' >
    >
    zfuture_builtins.zipcCs`|j|�rdSt|�r#dS|j�}d|_ttd�|g�}|j|_|S)N��list)Zshould_skiprZclone�prefixrr)�selfZnodeZresults�new�r�:/opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_zip.py�	transforms	zFixZip.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNZskip_onrrrrr
rsrN)	�__doc__rrZ
fixer_utilrrrZConditionalFixrrrrr
�<module>s