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

16 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<EFBFBD>W`Sc@sSdZddlmZddlmZddlmZdejfd<00><00>YZdS(s<>Fixer that changes 'a ,b' into 'a, b'.
This also changes '{a :b}' into '{a: b}', but does not touch other
uses of colons. It does not touch other uses of whitespace.
i(tpytree(ttoken(t
fixer_baset
FixWsCommacBsSeZeZdZejejd<00>Zejej d<00>Z ee fZ
d<00>Z RS(sH
any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]>
u,u:cCs<>|j<00>}t}x<>|jD]u}||jkrg|j}|j<00>r^d|kr^d|_nt}q|r<>|j}|s<>d|_q<>nt}qW|S(Nu
uu (tclonetFalsetchildrentSEPStprefixtisspacetTrue(tselftnodetresultstnewtcommatchildR((s#.\Lib\lib2to3\fixes\fix_ws_comma.pyt transforms     
( t__name__t
__module__R
texplicittPATTERNRtLeafRtCOMMAtCOLONRR(((s#.\Lib\lib2to3\fixes\fix_ws_comma.pyR s  N(t__doc__tRtpgen2RRtBaseFixR(((s#.\Lib\lib2to3\fixes\fix_ws_comma.pyt<module>s