• File: errors.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/site-packages/simplejson/__pycache__/errors.cpython-37.pyc
  • Date Modified: 04/24/2023 7:44 PM
  • File size: 1.95 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

VXY@s0dZdgZddZdddZGdddeZdS)	z!Error classes used by simplejson
JSONDecodeErrorcCs>|dd|d}|dkr$|d}n||dd|}||fS)N
)countrindex)docposlinenocolnorD/opt/alt/python37/lib64/python3.7/site-packages/simplejson/errors.pylinecols

r
Nc	Csnt||\}}|dt|||d}|dkrFd}|||||fSt||\}}d}||||||||fS)Nz%rrz%s: line %d column %d (char %d)z8%s: line %d column %d - line %d column %d (char %d - %d))r
replacerepr)	msgrrendr	r
Zfmt	endlinenoendcolnorrrerrmsgsrc@s"eZdZdZdddZddZdS)raSubclass 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
    end: The end index of doc where parsing failed (may be None)
    lineno: The line corresponding to pos
    colno: The column corresponding to pos
    endlineno: The line corresponding to end (may be None)
    endcolno: The column corresponding to end (may be None)

    Nc	Csnt|t||||d||_||_||_||_t||\|_|_	|dk	r^t||\|_
|_nd\|_
|_dS)N)r)NN)
ValueError__init__rrrrrr
r	r
rr)selfrrrrrrrr(szJSONDecodeError.__init__cCs|j|j|j|j|jffS)N)	__class__rrrr)rrrr
__reduce__4szJSONDecodeError.__reduce__)N)__name__
__module____qualname____doc__rrrrrrrs
)N)r__all__r
rrrrrrr<module>s