Your IP : 3.14.245.172


Current Path : /opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/fix_numliterals.cpython-34.pyc

�
j f�@sSdZddlmZddlmZddlmZGdd�dej�ZdS)z-Fixer that turns 1L into 1, 0755 into 0o755.
�)�token)�
fixer_base)�Numberc@s1eZdZejZdd�Zdd�ZdS)�FixNumliteralscCs#|jjd�p"|jddkS)N�0��Ll���)�value�
startswith)�self�node�r�B/opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_numliterals.py�matchszFixNumliterals.matchcCs�|j}|ddkr,|dd�}nJ|jd�rv|j�rvtt|��dkrvd|dd�}nt|d|j�S)NrrrZ0o�prefixr	r	)r
r�isdigit�len�setrr)rr
Zresults�valrrr�	transforms	3zFixNumliterals.transformN)�__name__�
__module__�__qualname__r�NUMBERZ_accept_typerrrrrrrs	rN)	�__doc__Zpgen2r�rZ
fixer_utilrZBaseFixrrrrr�<module>s

?>