��Qc@sSdZddlmZddlmZddlmZdejfd��YZdS(s-Fixer that turns 1L into 1, 0755 into 0o755.
i(ttoken(t
fixer_base(tNumbertFixNumliteralscBs#eZejZd�Zd�ZRS(cCs#|jjd�p"|jddkS(Nu0i�uLl(tvaluet
startswith(tselftnode((s3/sys/lib/python2.7/lib2to3/fixes/fix_numliterals.pytmatchscCs}|j}|ddkr&|d }nD|jd�rj|j�rjtt|��dkrjd|d}nt|d|j�S(Ni�uLlu0iu0otprefix(RRtisdigittlentsetRR (RRtresultstval((s3/sys/lib/python2.7/lib2to3/fixes/fix_numliterals.pyt transforms
3(t__name__t
__module__RtNUMBERt_accept_typeRR(((s3/sys/lib/python2.7/lib2to3/fixes/fix_numliterals.pyRs N( t__doc__tpgen2RtRt
fixer_utilRtBaseFixR(((s3/sys/lib/python2.7/lib2to3/fixes/fix_numliterals.pyt<module>s
|