AlkantarClanX12
Current Path : /opt/alt/python310/lib64/python3.10/json/__pycache__/ |
Current File : //opt/alt/python310/lib64/python3.10/json/__pycache__/decoder.cpython-310.opt-1.pyc |
o 6��f�0 � @ s d Z ddlZddlmZ zddlmZ W n ey dZY nw ddgZej ej B ejB Ze d�Ze d�Ze d �ZG d d� de�Zeeed�Ze�de�Zd dddddddd�Zdd� Zdeejfdd�ZepheZe�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 �3/opt/alt/python310/lib64/python3.10/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 s\ | |d |d � }t |�dkr&|d dvr&zt|d�W S ty% Y nw d}t|| |��)Nr � � ZxX� zInvalid \uXXXX escape)�len�intr r )�sr �escr r r r � _decode_uXXXX; s �r1 Tc C s� g }|j }|d } || |�}|du rtd| |��|�� }|�� \} } | r)|| � | dkr.n�| dkrD|r?d�| �}t|| |��|| � q z| | }W n tyX td| |�d�w |dkr{z|| } W n tyu d�|�}t|| |��w |d7 }nFt| |�}|d 7 }d | kr�dkr�n n-| ||d � d kr�t| |d �}d| kr�dkr�n nd|d d>