Current Path : /usr/lib/python2.7/lib2to3/fixes/ |
Current File : //usr/lib/python2.7/lib2to3/fixes/fix_zip.pyc |
ó —|_c @ sO d Z d d l m Z d d l m Z m Z m Z d e j f d „ ƒ YZ d S( s7 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 <>:. i ( t fixer_base( t Namet Callt in_special_contextt FixZipc B s# e Z e Z d Z d Z d „ Z RS( s: power< 'zip' args=trailer< '(' [any] ')' > > s future_builtins.zipc C s` | j | ƒ r d St | ƒ r# d S| j ƒ } d | _ t t d ƒ | g ƒ } | j | _ | S( Nu u list( t should_skipR t Nonet clonet prefixR R ( t selft nodet resultst new( ( s+ /usr/lib/python2.7/lib2to3/fixes/fix_zip.pyt transform s ( t __name__t __module__t Truet BM_compatiblet PATTERNt skip_onR ( ( ( s+ /usr/lib/python2.7/lib2to3/fixes/fix_zip.pyR s N( t __doc__t R t fixer_utilR R R t ConditionalFixR ( ( ( s+ /usr/lib/python2.7/lib2to3/fixes/fix_zip.pyt <module> s