AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/simplejson/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/simplejson/__pycache__/encoder.cpython-311.pyc |
� �܋f�q � �� � d Z ddlmZ ddlZddlmZ ddlZddlmZm Z m Z mZmZ d� Z e � � \ ZZddlmZ dd lmZ ej d � � Z ej d� � Z ej d� � Zd ddddddd�Z ed� � D ]%Ze� ee� � defz � � �&[eZedfd�Zefd�Z epe Z! G d� de"� � Z# G d� de#� � Z$ee%e de&e'e(ee)e*e+e,e-f d�Z.dS )zImplementation of JSONEncoder � )�absolute_importN)� itemgetter� )�binary_type� text_type�string_types� integer_types�PY3c �N � ddl m} | j | j fS # t $ r Y dS w xY w)Nr �� _speedups)NN)� r �encode_basestring_ascii�make_encoder�ImportErrorr s �I/opt/cloudlinux/venv/lib64/python3.11/site-packages/simplejson/encoder.py�_import_speedupsr sL � ���������0�)�2H�H�H��� � � ��z�z����s � � $�$)�PosInf)�RawJSONz[\x00-\x1f\\"]z([\\"]|[^\ -~])z[\x80-\xff]z\\z\"z\bz\fz\nz\rz\t)�\�"��� � � � �\u%04xr c �V � |rWt | t � � rt | d� � } n�t | � � t urt � | � � } n�t | t � � r+t � | � � �t | d� � } nmt | � � t t fvrPt | t � � rt � | � � } n t � | � � d } d� }|t � || � � z |z S )z5Return a JSON representation of a Python string �utf-8Nr c �B � t | � d� � S )Nr )� ESCAPE_DCT�group)�matchs r �replacez"encode_basestring.<locals>.replace= s � ��%�+�+�a�.�.�)�)� )� isinstance�bytes�str�type�__str__�HAS_UTF8�search�unicode�__getnewargs__�ESCAPE�sub)�s�_PY3�_qr% s r �encode_basestringr5 '