Your IP : 3.133.109.141


Current Path : /opt/alt/python310/lib64/python3.10/json/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/json/__pycache__/__init__.cpython-310.opt-2.pyc

o

6��f�6�
@s�	dZgd�ZdZddlmZmZddlmZddlZedd	d	d	dddd
�Z	dd	d	d	dddddd�	dd
�Z
dd	d	d	dddddd�	dd�Zeddd�Zdd�Z
ddddddd�dd�Zddddddd�dd�ZdS)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�	|s#|r#|r#|r#|dur#|dur#|dur#|	dur#|
s#|s#t�|�}n|dur)t}|d|||||||	|
d�|���|�}|D]}
|�|
�q>dS�N)r
rrr
rrrr�)�_default_encoder�
iterencoder�write)�obj�fpr
rrr
rrrrr�kw�iterable�chunkrr�4/opt/alt/python310/lib64/python3.10/json/__init__.pyrxs.*������rc	Ksv	|s"|r"|r"|r"|dur"|dur"|dur"|dur"|	s"|
s"t�|�S|dur(t}|d||||||||	d�|
���|�Sr)r�encoder)rr
rrr
rrrrrrrrrr�s()��
���r)�object_hook�object_pairs_hookcCs�|j}|tjtjf�r
dS|tjtjf�rdS|tj�rdSt|�dkrB|ds0|dr.dSdS|ds@|d	s<|d
r>dSdSd
St|�d	krT|dsNdS|dsTdSd
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
��rcKs	t|t�r|�d�rtd|d��nt|ttf�s"td|jj����|�	t
|�d�}|durI|durI|durI|durI|durI|durI|sIt�	|�S|durOt}|durW||d<|dur_||d<|durg||d<|duro||d	<|durw||d
<|di|���	|�S)Nuz-Unexpected UTF-8 BOM (decode using utf-8-sig)r	z5the JSON object must be str, bytes or bytearray, not �
surrogatepassrr r/r0r1r)
�
isinstance�strr$r�bytes�	bytearray�	TypeError�	__class__�__name__�decoder-�_default_decoderr)�srrr/r0r1r rrrrr+s:
 
���
r)�__version__�__all__�
__author__�decoderrr�encoderrr%rrrr<r-rrrrrr�<module>s@a�
�?�:��

?>