python (3.12.0)
̑e V d Z ddlmZ ddlmZ ddlmZ G d dej Zy)z-Fixer that turns 1L into 1, 0755 into 0o755.
)token)
fixer_base)Numberc 0 e Zd Zej Zd Zd Zy)FixNumliteralsc ^ |j j d xs |j d dv S )N0Ll)value
startswith)selfnodes Q/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/lib2to3/fixes/fix_numliterals.pymatchzFixNumliterals.match s)
%%c*Ddjjn.DE c |j }|d dv r|d d }n@|j d r/|j rt t | dkD rd|dd z }t ||j S )Nr
r r 0o)prefix)r r
isdigitlensetr r )r r resultsvals r transformzFixNumliterals.transform sd jjr7d?cr(C
^^C
S[[]s3s8}q7HQR.Cc$++..r N)__name__
__module____qualname__r NUMBER_accept_typer r r r r r s <<LF/r r N) __doc__pgen2r r
fixer_utilr BaseFixr r"