File: //opt/alt/python311/lib64/python3.11/json/__pycache__/decoder.cpython-311.pyc
�
    �f�0  �            	       �  � d Z ddlZddlmZ 	 ddlmZ n
# e$ r dZY nw xY wddgZej	        ej
        z  ej        z  Z e
d�  �        Z e
d�  �        Z e
d	�  �        Z G d
� de�  �        Zeeed�Z ej        de�  �        Zd
dddddddd�Zd� Zdeej        fd�ZepeZ ej        de�  �        ZdZdej        efd�Zej        efd�Z G d� de�  �        ZdS )zImplementation of JSONDecoder
�    N)�scanner)�
scanstring�JSONDecoder�JSONDecodeError�nan�infz-infc                   �   � e Zd ZdZd� Zd� 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                 �   � |�                     dd|�  �        dz   }||�                    dd|�  �        z
  }d||||fz  }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   �errmsgs          �3/opt/alt/python311/lib64/python3.11/json/decoder.pyr   zJSONDecodeError.__init__   s�   � ����4��C�(�(�1�,���c�i�i��a��-�-�-��2�c�6�5�#�5N�N�����D�&�)�)�)���������������
�
�
�    c                 �8   � | j         | j        | j        | j        ffS )N)�	__class__r   r   r   )r   s    r   �
__reduce__zJSONDecodeError.__reduce__*   s   � ��~���$�(�D�H�=�=�=r   N)�__name__�
__module__�__qualname__�__doc__r   r   � r   r   r   r      s<