o \Փa@s0dZdgZddZdddZGdddeZdS) z!Error classes used by simplejson JSONDecodeErrorcCsD|dd|d}|dkr|d}||fS||dd|}||fS)N )countrindex)docposlinenocolnor 3/usr/lib/python3/dist-packages/simplejson/errors.pylinecols r Nc Csnt||\}}|dt|||d}|dur#d}|||||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 fmt endlinenoendcolnor r r 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 Cspt|t||||d||_||_||_||_t||\|_|_ |dur0t||\|_ |_ dSd\|_ |_ dS)N)r)NN) ValueError__init__rrrrrr r r rr)selfrrrrr r r r(szJSONDecodeError.__init__cCs|j|j|j|j|jffSN) __class__rrrr)rr r r __reduce__4szJSONDecodeError.__reduce__r)__name__ __module__ __qualname____doc__rrr r r r rs r)r__all__r rrrr r r r s