U AT^c@s>dZddlmZddlmZddlmZGdddejZdS)z-Fixer that turns 1L into 1, 0755 into 0o755. i)token) fixer_base)Numberc@s"eZdZejZddZddZdS)FixNumliteralscCs|jdp|jddkS)N0Ll)value startswith)selfnoder 5/usr/lib64/python3.8/lib2to3/fixes/fix_numliterals.pymatchszFixNumliterals.matchcCs`|j}|ddkr |dd}n2|drR|rRtt|dkrRd|dd}t||jdS)NrrriZ0o)prefix)rrZisdigitZlenZsetrr)r r ZresultsZvalr r r transforms  "zFixNumliterals.transformN)Z__name__Z __module__Z __qualname__rZNUMBERZ _accept_typer rr r r r r srN) Z__doc__Zpgen2rZrZ fixer_utilrZBaseFixrr r r r Zs