Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/lib2to3/fixes/fix_ws_comma.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@sSdZddlmZddlmZddlmZdejfd��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�Zejej	d�Z	ee	fZ
d�ZRS(sH
    any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]>
    u,u:cCs�|j�}t}x�|jD]u}||jkrg|j}|j�r^d|kr^d|_nt}q|r�|j}|s�d|_q�nt}qW|S(Nu
uu (tclonetFalsetchildrentSEPStprefixtisspacetTrue(tselftnodetresultstnewtcommatchildR((s0/sys/lib/python2.7/lib2to3/fixes/fix_ws_comma.pyt	transforms			
(t__name__t
__module__R
texplicittPATTERNRtLeafRtCOMMAtCOLONRR(((s0/sys/lib/python2.7/lib2to3/fixes/fix_ws_comma.pyRsN(t__doc__tRtpgen2RRtBaseFixR(((s0/sys/lib/python2.7/lib2to3/fixes/fix_ws_comma.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.