File: //opt/imh-python/lib/python3.9/site-packages/simplejson/__pycache__/encoder.cpython-39.pyc
a
`�h�q �
@ s8 d Z ddlmZ ddlZddlmZ ddlZddlmZm Z m
Z
mZmZ dd� Z
e
� \ZZdd lmZ dd
lmZ e�d�Ze�d�Ze�d
�Zdddddddd�Zed�D ]Ze�ee�def � q�[eZedfdd�Zefdd�Z ep�e Z!G dd� de"�Z#G dd � d e#�Z$ee%e
de&e'e(ee)e*e+e,e-f
d!d"�Z.dS )#zImplementation of JSONEncoder
� )�absolute_importN)�
itemgetter� )�binary_type� text_type�string_types�
integer_types�PY3c C s4 zddl m} | j| jfW S ty. Y dS 0 d S )Nr �� _speedups)NN)� r �encode_basestring_ascii�make_encoder�ImportErrorr
� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/simplejson/encoder.py�_import_speedups s
r )�PosInf)�RawJSONz[\x00-\x1f\\"]z([\\"]|[^\ -~])z[\x80-\xff]z\\z\"z\bz\fz\nz\rz\t)�\�"���
�
� � �\u%04xr c C s� |r2t | t�rt| d�} q�t| �tur�t�| �} nXt | t�rVt�| �durVt| d�} n4t| �ttfvr�t | t�r|t�| �} nt�| �d } dd� }|t �
|| � | S )z5Return a JSON representation of a Python string
�utf-8Nr c S s t | �d� S )Nr )�
ESCAPE_DCT�group)�matchr r r �replace= s z"encode_basestring.<locals>.replace)�
isinstance�bytes�str�type�__str__�HAS_UTF8�search�unicode�__getnewargs__�ESCAPE�sub)�s�_PY3Z_qr"