Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/lib2to3/fixes/fix_numliterals.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��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.pyRs		N(	t__doc__tpgen2RtRt
fixer_utilRtBaseFixR(((s3/sys/lib/python2.7/lib2to3/fixes/fix_numliterals.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].