ok
Direktori : /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/ |
Current File : //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_zip.cpython-35.pyc |
K�Ma� � @ 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 �:/opt/alt/python35/lib64/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