Sc@sdZddlZdZeZddgZejdejejBejBZ de fdYZ dZ dd Zd ZepeZdS( sJSON token scanner iNcCs1yddlm}|SWntk r,dSXdS(Ni(t make_scanner(tsimplejson._speedupsRt ImportErrortNone(R((s8/usr/lib64/python2.7/site-packages/simplejson/scanner.pyt_import_c_make_scanners  RtJSONDecodeErrors)(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?cBs#eZdZddZdZRS(sSubclass 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) cCstj|t|||d|||_||_||_||_t||\|_|_ |dk rt||\|_ |_ nd\|_ |_ dS(Ntend(NN( t ValueErrort__init__terrmsgtmsgtdoctposRtlinecoltlinenotcolnoRt endlinenotendcolno(tselfR R R R((s8/usr/lib64/python2.7/site-packages/simplejson/scanner.pyR s"     cCs%|j|j|j|j|jffS(N(t __class__R R R R(R((s8/usr/lib64/python2.7/site-packages/simplejson/scanner.pyt __reduce__,sN(t__name__t __module__t__doc__RRR(((s8/usr/lib64/python2.7/site-packages/simplejson/scanner.pyRs  cCsU|jdd|d}|dkr2|d}n||jdd|}||fS(Ns ii(tcounttrindex(R R RR((s8/usr/lib64/python2.7/site-packages/simplejson/scanner.pyR 0s   c Cst||\}}|jdt|||d!}|dkr^d}|||||fSt||\}}d}||||||||fS(Ns%ris%s: line %d column %d (char %d)s8%s: line %d column %d - line %d column %d (char %d - %d)(R treplacetreprR( R R R RRRtfmtRR((s8/usr/lib64/python2.7/site-packages/simplejson/scanner.pyR 9s# c s|j |j|j tj|j|j |j|j |j |j |j |j  f dfd}|S(Nc s{d}y||}Wn#tk r9t|||nX|dkr] ||d S|dkr ||df S|dkr||dfS|dkr|||d!dkrd|dfS|d kr|||d!d krt|dfS|d krE|||d !d krEt|d fS||}|dk r|j\}}}|s|r||pd|pd}n |}||jfS|dkr|||d!dkrd|dfS|dkr.|||d!dkr.d|dfS|dkre|||d!dkred|dfSt|||dS(NsExpecting valuet"it{t[tnitnullttttruetfitfalsettNitNaNtIitInfinityt-i s -Infinity(t IndexErrorRRtTruetFalsetgroupsR( tstringtidxR tnextchartmtintegertfractexptres( t _scan_oncetencodingt match_numbertmemot object_hooktobject_pairs_hookt parse_arraytparse_constantt parse_floatt parse_intt parse_objectt parse_stringtstrict(s8/usr/lib64/python2.7/site-packages/simplejson/scanner.pyR8Rs@    ###  # ###csD|dkr!td||nz||SWdjXdS(NisExpecting value(Rtclear(R0R1(R8R;(s8/usr/lib64/python2.7/site-packages/simplejson/scanner.pyt scan_oncexs  ( RBR>RCt NUMBER_REtmatchR9RDR@RAR?R<R=R;(tcontextRF(( R8R9R:R;R<R=R>R?R@RARBRCRDs8/usr/lib64/python2.7/site-packages/simplejson/scanner.pytpy_make_scannerDs            3& (RtreRtc_make_scannert__all__tcompiletVERBOSEt MULTILINEtDOTALLRGRRR RR RJR(((s8/usr/lib64/python2.7/site-packages/simplejson/scanner.pyts     A