U if@s>dZddlmZddlmZddlmZGdddejZdS)z-Fixer that turns 1L into 1, 0755 into 0o755. )token) fixer_base)Numberc@s"eZdZejZddZddZdS)FixNumliteralscCs|jdp|jddkS)N0Ll)value startswith)selfnoder B/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_numliterals.pymatchszFixNumliterals.matchcCs`|j}|ddkr |dd}n2|drR|rRtt|dkrRd|dd}t||jdS)NrrrZ0o)prefix)r r isdigitlensetrr)r r Zresultsvalr r r transforms  "zFixNumliterals.transformN)__name__ __module__ __qualname__rNUMBERZ _accept_typerrr r r rr srN) __doc__Zpgen2rrZ fixer_utilrZBaseFixrr r r rs