Your IP : 18.119.119.119


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

U

i�f	8�
@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�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�|���|�}|D]}
|�|
�qzdS�N)r
rrr
rrrr)�_default_encoder�
iterencoder�write)�obj�fpr
rrr
rrrrr�kw�iterable�chunk�r�2/opt/alt/python38/lib64/python3.8/json/__init__.pyrxsD-�����������c	Kst|sB|rB|rB|rB|dkrB|dkrB|dkrB|dkrB|	sB|
sBt�|�S|dkrNt}|f||||||||	d�|
���|�Sr)r�encoder)rr
rrr
rrrrrrrrrr�sD,��������
���)�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_constantr c	Ks"t|��f||||||d�|��S)Nr.)r�read)rrrr/r0r1r rrrrrs
��c	Ks&t|t�r"|�d�rRtd|d��n0t|ttf�sBtd|jj����|�	t
|�d�}d|krxddl}|jdt
dd	�|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 �
surrogatepass�encodingzF'encoding' is ignored and deprecated. It will be removed in Python 3.9r")�
stacklevelrr r/r0r1)�
isinstance�strr$r�bytes�	bytearray�	TypeError�	__class__�__name__�decoder-�warnings�warn�DeprecationWarning�_default_decoderr)	�srrr/r0r1r rr>rrrr+sT$

�������


)�__version__�__all__�
__author__�decoderrr�encoderrr%rrrrAr-rrrrrr�<module>bsb��
�?�:��

?>