File: //usr/lib/python3/dist-packages/simplejson/__pycache__/errors.cpython-310.pyc
o
\Փa� � @ s0 d Z dgZdd� Zddd�ZG dd� de�ZdS ) z!Error classes used by simplejson
�JSONDecodeErrorc C sD | � dd|�d }|dkr|d }||fS || �dd|� }||fS )N�
� � )�count�rindex)�doc�pos�lineno�colno� r �3/usr/lib/python3/dist-packages/simplejson/errors.py�linecol s �r
Nc C sn t ||�\}}| �dt|||d � ��} |d u r#d}|| |||f S t ||�\}}d}|| ||||||f S )Nz%rr z%s: line %d column %d (char %d)z8%s: line %d column %d - line %d column %d (char %d - %d))r
�replace�repr) �msgr r �endr r
�fmt� endlineno�endcolnor r r �errmsg s r c @ s"