Viewing File: /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_ws_comma.cpython-311.pyc



fBTdZddlmZddlmZddlmZGddejZdS)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|eZdZdZdZejejdZejej	dZ	ee	fZ
dZdS)
FixWsCommaTzH
    any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]>
    ,:c|}d}|jD]H}||jvr)|j}|rd|vrd|_d}4|r|j}|sd|_d}I|S)NF
T )clonechildrenSEPSprefixisspace)selfnoderesultsnewcommachildrs       A/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_ws_comma.py	transformzFixWsComma.transformsjjll\		E	!!>>##&F(:(:#%EL+"\F!+'*
N)__name__
__module____qualname__explicitPATTERNrLeafrCOMMACOLONrrrrrrsdHG
FKS))EFKS))E5>DrrN)__doc__rrpgen2rrBaseFixrr$rr<module>r(s~#r
Back to Directory File Manager