Viewing File: /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_ws_comma.cpython-35.pyc



YfB@sSdZddlmZddlmZddlmZGdddejZdS)zFixer 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.

)pytree)token)
fixer_basec@s^eZdZdZdZejejdZejej	dZ	ee	fZ
ddZdS)
FixWsCommaTzH
    any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]>
    ,:cCs|j}d}xw|jD]l}||jkrd|j}|jr[d|kr[d|_d}q|r|j}|sd|_d}qW|S)NF
T )ZcloneZchildrenSEPSprefixisspace)selfZnodeZresultsnewZcommaZchildrr?/opt/alt/python35/lib64/python3.5/lib2to3/fixes/fix_ws_comma.py	transforms					
zFixWsComma.transformN)__name__
__module____qualname__ZexplicitZPATTERNrZLeafrCOMMACOLONrrrrrrrsrN)__doc__r	rZpgen2rrZBaseFixrrrrr<module>s
Back to Directory File Manager