ok
Direktori : /usr/lib64/python2.7/lib2to3/fixes/ |
Current File : //usr/lib64/python2.7/lib2to3/fixes/fix_zip.pyc |
� {fc @ 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/lib64/python2.7/lib2to3/fixes/fix_zip.pyt transform s ( t __name__t __module__t Truet BM_compatiblet PATTERNt skip_onR ( ( ( s- /usr/lib64/python2.7/lib2to3/fixes/fix_zip.pyR s N( t __doc__t R t fixer_utilR R R t ConditionalFixR ( ( ( s- /usr/lib64/python2.7/lib2to3/fixes/fix_zip.pyt <module> s