î
j f† ã @ 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/python34/lib64/python3.4/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
Ú