Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/simplejson/__pycache__/ |
Upload File : |
o \Փa�q � @ s: d Z ddlmZ ddlZddlmZ ddlZddlmZm Z m Z mZmZm Z dd� Ze� \ZZdd lmZ dd lmZ e�d�Ze�d�Ze�d �Zdddddddd�Zed�D ] Ze�ee�def � qXeZe dfdd�Z e fdd�Z!epxe!Z"G dd� de#�Z$G dd � d e$�Z%e e&ede'e(e)ee*e+e,e-e.f d!d"�Z/dS )#zImplementation of JSONEncoder � )�absolute_importN)� itemgetter� )�unichr�binary_type� text_type�string_types� integer_types�PY3c C s0 z ddl m} | j| jfW S ty Y dS w )Nr �� _speedups)NN)� r �encode_basestring_ascii�make_encoder�ImportErrorr � r �4/usr/lib/python3/dist-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� |rt | t�r t| d�} n8t| �turt�| �} n,t | t�r+t�| �dur+t| d�} nt| �ttfvrEt | 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<