Files
PowerToys/PythonHome/Lib/lib2to3/fixes/fix_zip.pyc

15 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<EFBFBD>W`Sc@sOdZddlmZddlmZmZmZdejfd<00><00>YZdS(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(tNametCalltin_special_contexttFixZipcBs#eZeZdZdZd<00>ZRS(s:
power< 'zip' args=trailer< '(' [any] ')' >
>
sfuture_builtins.zipcCs`|j|<00>rdSt|<00>r#dS|j<00>}d|_ttd<00>|g<00>}|j|_|S(Nuulist(t should_skipRtNonetclonetprefixRR(tselftnodetresultstnew((s.\Lib\lib2to3\fixes\fix_zip.pyt transforms    (t__name__t
__module__tTruet BM_compatibletPATTERNtskip_onR (((s.\Lib\lib2to3\fixes\fix_zip.pyRsN( t__doc__tRt
fixer_utilRRRtConditionalFixR(((s.\Lib\lib2to3\fixes\fix_zip.pyt<module>s