Your IP : 3.144.30.14


Current Path : /opt/alt/python38/lib64/python3.8/json/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/json/__pycache__/scanner.cpython-38.opt-1.pyc

U

i�fy	�@sjdZddlZzddlmZWnek
r4dZYnXdgZe�dejej	Bej
B�Zdd�ZepdeZdS)zJSON token scanner
�N)�make_scannerrz)(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?csv|j�	|j�|j�
tj�|j�|j�|j�|j�|j	�|j
�|j�����������	�
�fdd����fdd�}|S)Ncs�z||}Wntk
r*t|�d�YnX|dkrD�
||d��S|dkrf�	||df������S|dkr��||df��S|dkr�|||d�dkr�d|dfS|dkr�|||d�d	kr�d
|dfS|dk�r�|||d�d
k�r�d|dfS�||�}|dk	�r\|��\}}}|�s*|�rH�||�p6d|�p@d�}n�|�}||��fS|dk�r�|||d�dk�r��d�|dfS|dk�r�|||d�dk�r��d�|dfS|dk�r�|||d�dk�r�d�|dfSt|��dS)N�"��{�[�n�Znull�t�trueT�f�ZfalseF��N�ZNaN�I�ZInfinity�-�	z	-Infinity)�
IndexError�
StopIteration�groups�end)�string�idxZnextchar�mZintegerZfracZexp�res��
_scan_onceZmatch_number�memo�object_hook�object_pairs_hook�parse_array�parse_constant�parse_float�	parse_int�parse_object�parse_string�strict��1/opt/alt/python38/lib64/python3.8/json/scanner.pyrsF� 

   z#py_make_scanner.<locals>._scan_oncecsz�||�W�S���XdS)N)�clear)rr)rrr(r)�	scan_onceAsz"py_make_scanner.<locals>.scan_once)r%r!r&�	NUMBER_RE�matchr'r#r$r"rr r)�contextr+r(rr)�py_make_scanners"%r/)
�__doc__�reZ_jsonrZc_make_scanner�ImportError�__all__�compile�VERBOSE�	MULTILINE�DOTALLr,r/r(r(r(r)�<module>s
�:

?>