File: //lib64/python3.6/site-packages/simplejson/__pycache__/encoder.cpython-36.pyc
3
�8�]�o �
@ s> d Z ddlmZ ddlZddlmZ ddlZddlmZm Z m
Z
mZmZm
Z
dd� Ze� \ZZdd lmZ dd
lmZ ejd�Zejd�Zejd
�Zdddddddd�Zx&ed�D ]Zejee�def � q�W eZe
dfdd�Z e
fdd�Z!ep�e!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 s2 yddl m} | j| jfS tk
r, dS X d S )Nr )� _speedups)NN)� r �encode_basestring_asciiZmake_encoder�ImportError)r � r �/usr/lib64/python3.6/encoder.py�_import_speedups s
r )�PosInf)�RawJSONz[\x00-\x1f\\"]z([\\"]|[^\ -~])z[\x80-\xff]z\\z\"z\bz\fz\nz\rz\t)�\�"���
�
� � z\u%04xr c C s� |r2t | t�rt| d�} q�t| �tk r�tj| �} nXt | t�rVtj| �dk rVt| d�} n4t| �ttfkr�t | t�r|tj| �} ntj| �d } dd� }|t j
|| � | S )z5Return a JSON representation of a Python string
zutf-8Nr c S s t | jd� S )Nr )�
ESCAPE_DCT�group)�matchr r r �replace<