OwlCyberSecurity - MANAGER
Edit File: decoder.cpython-38.pyc
U ����e5d�0������������������� ���@���s��d�Z�ddlZddlmZ�zddlmZ�W�n�ek r@���dZY�nX�ddgZej ej B�ejB�Ze d�Ze d�Ze d �ZG�d d��de�Zeeed�Ze�de�Zd dddddddd�Zdd��Zdeejfdd�Zep�eZe�de�ZdZdejefdd�Zejefdd �ZG�d!d��de�ZdS�)"zImplementation of JSONDecoder �����N)�scanner)� scanstring�JSONDecoder�JSONDecodeError�nan�infz-infc�������������������@���s ���e�Zd�ZdZdd��Zdd��ZdS�)r���a ��Subclass of ValueError with the following additional properties: msg: The unformatted error message doc: The JSON document being parsed pos: The start index of doc where parsing failed lineno: The line corresponding to pos colno: The column corresponding to pos c�����������������C���sb���|��dd|�d�}||�dd|��}d||||f�}t�|�|��||�_||�_||�_||�_||�_d�S�)N� r�������z%s: line %d column %d (char %d)) �count�rfind� ValueError�__init__�msg�doc�pos�lineno�colno)�selfr���r���r���r���r����errmsg��r����$/usr/lib64/python3.8/json/decoder.pyr ������s����zJSONDecodeError.__init__c�����������������C���s���|�j�|�j|�j|�jffS�)N)� __class__r���r���r���)r���r���r���r���� __reduce__*���s����zJSONDecodeError.__reduce__N)�__name__� __module__�__qualname__�__doc__r ���r���r���r���r���r���r������s��� )z -InfinityZInfinity�NaNz(.*?)(["\\\x00-\x1f])�"�\�/��r���� � )r���r���r ����b�f�n�r�tc�����������������C���sb���|�|d�|d���}t�|�dkrN|d�dkrNzt|d�W�S��tk rL���Y�nX�d}t||�|��d�S�)Nr �����������ZxX����zInvalid \uXXXX escape)�len�intr���r���)�sr����escr���r���r���r���� _decode_uXXXX;���s����r1���Tc�����������������C���s���g�}|j�}|d�}||�|�}|dkr0td|�|��|���}|���\} } | rP|| ��| dkr^�q�n.| dkr�|r�d�| �}t||�|��n || ��qz|�|�}W�n"�tk r����td|�|�d�Y�nX�|dk�rz||�} W�n*�tk r����d�|�}t||�|��Y�nX�|d7�}n�t|�|�}|d 7�}d |��k�r2dk�r�n�n`|�||d���d k�r�t|�|d��}d|��k�rrdk�r�n�n d|d �d>�|d�B��}|d7�}t|�} || ��qd� |�|fS�)a���Scan the string s for a JSON string. End is the index of the character in s after the quote that started the JSON string. Unescapes all valid JSON string escape sequences and raises ValueError on attempt to decode an invalid string. If strict is False then literal control characters are allowed in the string. Returns a tuple of the decoded string and the index of the character in s after the end quote.r ���NzUnterminated string starting atr���r���z"Invalid control character {0!r} at�uzInvalid \escape: {0!r}r*���i����i��������z\ui����i����i���� ���������) �appendr����end�groups�format� IndexError�KeyErrorr1����chr�join)r/���r8����strictZ_b�_mZchunks�_appendZbegin�chunkZcontent� terminatorr���r0����charZuniZuni2r���r���r���� py_scanstringE���sX���� ��� 2 rE���z [ \t\n\r]*z c�������������� ���C���s���|�\}} g�} | j�}|d�kri�}|j}|| | d���} | dkr�| |krb||| ����} || | d���} | dkr�|d�k r�|| �}|| d�fS�i�} |d�k r�|| �} | | d�fS�| dkr�td|| ��| d7�} t|| |�\}} |||�}|| | d���dk�r"||| ����} || | d���dk�r"td|| ��| d7�} z:|| �|k�rb| d7�} || �|k�rb||| d�����} W�n�tk �rz���Y�nX�z||| �\}} W�n4�tk �r��}�ztd||j�d��W�5�d�}~X�Y�nX�|||f��z0|| �} | |k�r�||| d�����} || �} W�n�tk �r���d} Y�nX�| d7�} | dk�r4�q�n| d k�rNtd || d���||| ����} || | d���} | d7�} | dkr�td|| d���q�|d�k �r�|| �}|| fS�t| �} |d�k �r�|| �} | | fS�)Nr ���r����}z1Expecting property name enclosed in double quotes�:zExpecting ':' delimiter�Expecting valuer6����,�Expecting ',' delimiter) r7���� setdefaultr8���r���r���r;���� StopIteration�value�dict)� s_and_endr?���� scan_once�object_hook�object_pairs_hook�memo�_w�_wsr/���r8���ZpairsZpairs_appendZmemo_get�nextchar�result�keyrM����errr���r���r���� JSONObject����s�������� " ��� rZ���c�������������� ���C���st��|�\}}g�}|||d���}||krF|||d������}|||d���}|dkrZ||d�fS�|j}z|||�\} }W�n2�tk r��} �ztd|| j�d��W�5�d�} ~ X�Y�nX�|| ��|||d���}||kr�|||d������}|||d���}|d7�}|dkr��qln|dk�rtd||d���z:||�|k�rP|d7�}||�|k�rP|||d������}W�q`�tk �rh���Y�q`X�q`||fS�)Nr ����]rH���rI���rJ���)r8���r7���rL���r���rM���r;���)rO���rP���rT���rU���r/���r8����valuesrV���rA���rM���rY���r���r���r���� JSONArray����s>����" r]���c�������������������@���s@���e�Zd�ZdZddddddd�dd�Zejfdd�Zdd d�ZdS�) r���a��Simple JSON <http://json.org> decoder Performs the following translations in decoding by default: +---------------+-------------------+ | JSON | Python | +===============+===================+ | object | dict | +---------------+-------------------+ | array | list | +---------------+-------------------+ | string | str | +---------------+-------------------+ | number (int) | int | +---------------+-------------------+ | number (real) | float | +---------------+-------------------+ | true | True | +---------------+-------------------+ | false | False | +---------------+-------------------+ | null | None | +---------------+-------------------+ It also understands ``NaN``, ``Infinity``, and ``-Infinity`` as their corresponding ``float`` values, which is outside the JSON spec. NT)rQ����parse_float� parse_int�parse_constantr?���rR���c����������������C���sZ���||�_�|pt|�_|pt|�_|p"tj|�_||�_||�_ t |�_t|�_ t|�_i�|�_t�|��|�_dS�)a���``object_hook``, if specified, will be called with the result of every JSON object decoded and its return value will be used in place of the given ``dict``. This can be used to provide custom deserializations (e.g. to support JSON-RPC class hinting). ``object_pairs_hook``, if specified will be called with the result of every JSON object decoded with an ordered list of pairs. The return value of ``object_pairs_hook`` will be used instead of the ``dict``. This feature can be used to implement custom decoders. If ``object_hook`` is also defined, the ``object_pairs_hook`` takes priority. ``parse_float``, if specified, will be called with the string of every JSON float to be decoded. By default this is equivalent to float(num_str). This can be used to use another datatype or parser for JSON floats (e.g. decimal.Decimal). ``parse_int``, if specified, will be called with the string of every JSON int to be decoded. By default this is equivalent to int(num_str). This can be used to use another datatype or parser for JSON integers (e.g. float). ``parse_constant``, if specified, will be called with one of the following strings: -Infinity, Infinity, NaN. This can be used to raise an exception if invalid JSON numbers are encountered. If ``strict`` is false (true is the default), then control characters will be allowed inside strings. Control characters in this context are those with character codes in the 0-31 range, including ``'\t'`` (tab), ``'\n'``, ``'\r'`` and ``'\0'``. N)rQ����floatr^���r.���r_���� _CONSTANTS�__getitem__r`���r?���rR���rZ���Zparse_objectr]���Zparse_arrayr���Zparse_stringrS���r���Zmake_scannerrP���)r���rQ���r^���r_���r`���r?���rR���r���r���r���r �����s����# zJSONDecoder.__init__c�����������������C���sF���|�j�|||d����d�\}}|||����}|t|�krBtd||��|S�)zlReturn the Python representation of ``s`` (a ``str`` instance containing a JSON document). r���)�idxz Extra data)� raw_decoder8���r-���r���)r���r/���rT����objr8���r���r���r����decodeL��s ����zJSONDecoder.decoder���c�������������� ���C���sP���z|���||�\}}W�n2�tk rF�}�ztd||j�d�W�5�d}~X�Y�nX�||fS�)a=��Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. rH���N)rP���rL���r���rM���)r���r/���rd���rf���r8���rY���r���r���r���re���W��s ���� "zJSONDecoder.raw_decode)r���) r���r���r���r���r ���� WHITESPACE�matchrg���re���r���r���r���r���r�������s������0) r����reZjsonr���Z_jsonr���Zc_scanstring�ImportError�__all__�VERBOSE� MULTILINE�DOTALL�FLAGSra���r���ZPosInfZNegInfr���r���rb����compileZSTRINGCHUNKZ BACKSLASHr1���ri���rE���rh���ZWHITESPACE_STRrZ���r]����objectr���r���r���r���r����<module>���sP��� �������� �� =��� Q%