Your IP : 3.149.238.67


Current Path : /proc/self/root/opt/alt/python37/lib64/python3.7/json/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python37/lib64/python3.7/json/__pycache__/__init__.cpython-37.opt-2.pyc

B

YI~d
7�
@s�dZdddddddgZdZd	d
lmZmZd	dlmZdd
lZeddddd
d
d
d�Z	ddddd
d
d
d
dd�	dd�Z
ddddd
d
d
d
dd�	dd�Zed
d
d�Zdd�Z
d
d
d
d
d
d
d�dd�Zd
d
d
d
d
d
d
d�dd�Zd
S)z2.0.9�dump�dumps�load�loads�JSONDecoder�JSONDecodeError�JSONEncoderzBob Ippolito <bob@redivi.com>�)rr)r�NFT)�skipkeys�ensure_ascii�check_circular�	allow_nan�indent�
separators�default)	r
rrr
�clsrrr�	sort_keysc	Ks�|sD|rD|rD|rD|dkrD|dkrD|dkrD|	dkrD|
sD|sDt�|�}n2|dkrPt}|f|||||||	|
d�|���|�}x|D]}
|�|
�q|WdS)N)r
rrr
rrrr)�_default_encoder�
iterencoder�write)�obj�fpr
rrr
rrrrr�kw�iterable�chunk�r�2/opt/alt/python37/lib64/python3.7/json/__init__.pyrxs-
c	Kst|sB|rB|rB|rB|dkrB|dkrB|dkrB|dkrB|	sB|
sBt�|�S|dkrNt}|f||||||||	d�|
���|�S)N)r
rrr
rrrr)r�encoder)rr
rrr
rrrrrrrrrr�s,

)�object_hook�object_pairs_hookcCs�|j}|tjtjf�rdS|tjtjf�r.dS|tj�r<dSt|�dkr�|ds`|dr\dSdS|ds�|d	sx|d
r|dSdSn$t|�d	kr�|ds�dS|ds�dSd
S)Nzutf-32zutf-16z	utf-8-sig�r	rz	utf-16-bez	utf-32-be��z	utf-16-lez	utf-32-lezutf-8)�
startswith�codecs�BOM_UTF32_BE�BOM_UTF32_LE�BOM_UTF16_BE�BOM_UTF16_LE�BOM_UTF8�len)�bZbstartswithrrr�detect_encoding�s$
r,)rr�parse_float�	parse_int�parse_constantrc	Ks"t|��f||||||d�|��S)N)rrr-r.r/r)r�read)rrrr-r.r/rrrrrrs
)�encodingrrr-r.r/rc	Ks�t|t�r"|�d�rRtd|d��n0t|ttf�sBtd|jj����|�	t
|�d�}|dkr�|dkr�|dkr�|dkr�|dkr�|dkr�|s�t�	|�S|dkr�t}|dk	r�||d<|dk	r�||d<|dk	r�||d<|dk	r�||d	<|dk	r�||d
<|f|��	|�S)Nuz-Unexpected UTF-8 BOM (decode using utf-8-sig)r	z5the JSON object must be str, bytes or bytearray, not �
surrogatepassrrr-r.r/)
�
isinstance�strr#r�bytes�	bytearray�	TypeError�	__class__�__name__�decoder,�_default_decoderr)	�sr1rrr-r.r/rrrrrr+s0$



)�__version__�__all__�
__author__�decoderrr�encoderrr$rrrr;r,rrrrrr�<module>bs4
=8

?>