| Server IP : 85.214.239.14 / Your IP : 216.73.216.27 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/cwd/usr/lib/python3.5/lib2to3/fixes/__pycache__/ |
Upload File : |
F��a� � @ sO d Z d d l m Z d d l m Z m Z m Z Gd d � d e j � Z d S)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. e Z d Z d Z d Z d Z d d � Z d S)�FixZipTz:
power< 'zip' args=trailer< '(' [any] ')' >
>
zfuture_builtins.zipc C s` | j | � r d St | � r# d S| j � } d | _ t t d � | g � } | j | _ | S)N� �list)Zshould_skipr Zclone�prefixr r )�selfZnodeZresults�new� r �+/usr/lib/python3.5/lib2to3/fixes/fix_zip.py� transform s zFixZip.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNZskip_onr r r r r
r s r N) �__doc__r r Z
fixer_utilr r r ZConditionalFixr r r r r
�<module> s