Ñò $œœIc @s¦dZddkZddkZddkZddklZyddklZWne j o dZnXdgZ ei ei BeiBZd„Zeƒ\ZZZd„Zdd„Zhed 6ed 6ed 6Zeid eƒZhd d6dd6dd6dd6dd6dd6dd6dd6ZdZdeeeid„ZepeZeideƒZd Zeied!„Z eied"„Z!de"fd#„ƒYZ#dS($sImplementation of JSONDecoder iÿÿÿÿN(t make_scanner(t scanstringt JSONDecodercCsudidƒ}tidjo0|d ddd…|dddd…}ntid|ƒ\}}||| fS(Nt 7FF80000000000007FF0000000000000thextbigiiÿÿÿÿtdd(tdecodetsyst byteordertstructtunpack(t_BYTEStnantinf((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyt_floatconstantss 0cCsS|idd|ƒd}|djo |}n||idd|ƒ}||fS(Ns ii(tcounttrindex(tdoctpostlinenotcolno((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pytlinecols   c Csut||ƒ\}}|djod}|||||fSt||ƒ\}}d}||||||||fS(Ns%s: line %d column %d (char %d)s8%s: line %d column %d - line %d column %d (char %d - %d)(RtNone( tmsgRRtendRRtfmtt endlinenotendcolno((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyterrmsg$s s -InfinitytInfinitytNaNs(.*?)(["\\\x00-\x1f])u"t"u\s\u/t/utbu tfu tnu tru ttsutf-8c Cs@|djo t}ng}|i}|d}xú|||ƒ} | djottd||ƒƒ‚n| iƒ}| iƒ\} } | o1t| tƒpt| |ƒ} n|| ƒn| djoPnO| djoA|o)d| f} tt| ||ƒƒ‚q!|| ƒq3ny||} Wn+t j ottd||ƒƒ‚nX| djoZy|| }Wn;t j o/dt | ƒ} tt| ||ƒƒ‚nX|d7}n]||d|d!} |d}t | ƒd jo"d } tt| ||ƒƒ‚nt | d ƒ}d |jo d jnoÉtidjo¹d} ||d|d!djptt| ||ƒƒ‚n||d|d!}t |ƒd jott| ||ƒƒ‚nt |d ƒ}d|d d>|dB}|d7}nt|ƒ}|}||ƒq3di|ƒ|fS(s²Scan the string s for a JSON string. End is the index of the character in s after the quote that started the JSON string. Unescapes all valid JSON string escape sequences and raises ValueError on attempt to decode an invalid string. If strict is False then literal control characters are allowed in the string. Returns a tuple of the decoded string and the index of the character in s after the end quote.isUnterminated string starting atR s\sInvalid control character %r attusInvalid \escape: iisInvalid \uXXXX escapeiiØiÿÛiÿÿs#Invalid \uXXXX\uXXXX surrogate pairis\ui ii iÜiuN(RtDEFAULT_ENCODINGtappendt ValueErrorRRtgroupst isinstancetunicodet IndexErrortKeyErrortreprtlentintRt maxunicodetunichrtjoin(tsRtencodingtstrictt_bt_mtchunkst_appendtbegintchunktcontentt terminatorRtesctchartnext_endtunitesc2tuni2((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyt py_scanstringAsp            .  s [ \t\n\r]*s c Cs“|\}}h} |||d!} | djo€| |jo*|||ƒiƒ}|||d!} n| djo| |dfS| djottd||ƒƒ‚q°n|d7}x¯to§t||||ƒ\} }|||d!djoM|||ƒiƒ}|||d!djottd||ƒƒ‚qDn|d7}yQ|||jo<|d7}|||jo|||dƒiƒ}qžnWntj onXy|||ƒ\} }Wn+tj ottd||ƒƒ‚nX| | | decoder Performs the following translations in decoding by default: +---------------+-------------------+ | JSON | Python | +===============+===================+ | object | dict | +---------------+-------------------+ | array | list | +---------------+-------------------+ | string | unicode | +---------------+-------------------+ | number (int) | int, long | +---------------+-------------------+ | number (real) | float | +---------------+-------------------+ | true | True | +---------------+-------------------+ | false | False | +---------------+-------------------+ | null | None | +---------------+-------------------+ It also understands ``NaN``, ``Infinity``, and ``-Infinity`` as their corresponding ``float`` values, which is outside the JSON spec. cCs|||_||_|pt|_|pt|_|pti|_||_ t |_ t |_ t|_t|ƒ|_dS(sf``encoding`` determines the encoding used to interpret any ``str`` objects decoded by this instance (utf-8 by default). It has no effect when decoding ``unicode`` objects. Note that currently only encodings that are a superset of ASCII work, strings of other encodings should be passed in as ``unicode``. ``object_hook``, if specified, will be called with the result of every JSON object decoded and its return value will be used in place of the given ``dict``. This can be used to provide custom deserializations (e.g. to support JSON-RPC class hinting). ``parse_float``, if specified, will be called with the string of every JSON float to be decoded. By default this is equivalent to float(num_str). This can be used to use another datatype or parser for JSON floats (e.g. decimal.Decimal). ``parse_int``, if specified, will be called with the string of every JSON int to be decoded. By default this is equivalent to int(num_str). This can be used to use another datatype or parser for JSON integers (e.g. float). ``parse_constant``, if specified, will be called with one of the following strings: -Infinity, Infinity, NaN. This can be used to raise an exception if invalid JSON numbers are encountered. N(R7RPtfloatt parse_floatR2t parse_intt _CONSTANTSt __getitem__tparse_constantR8RWt parse_objectRZt parse_arrayRt parse_stringRRO(tselfR7RPR\R]R`R8((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyt__init__!s      cCs{|i|d||dƒiƒƒ\}}|||ƒiƒ}|t|ƒjo%ttd||t|ƒƒƒ‚n|S(szReturn the Python representation of ``s`` (a ``str`` or ``unicode`` instance containing a JSON document) tidxis Extra data(t raw_decodeRR1R*R(RdR6RQtobjR((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyRJs *%icCsHy|i||ƒ\}}Wntj otdƒ‚nX||fS(sLDecode a JSON document from ``s`` (a ``str`` or ``unicode`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. sNo JSON object could be decoded(RORMR*(RdR6RfRhR((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyRgUs N( t__name__t __module__t__doc__RRLRet WHITESPACEtmatchRRg(((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyRs  ( ($RktreRR tsimplejson.scannerRtsimplejson._speedupsRt c_scanstringt ImportErrorRt__all__tVERBOSEt MULTILINEtDOTALLtFLAGSRRtPosInftNegInfRRR^tcompilet STRINGCHUNKt BACKSLASHR(RLRmRGRltWHITESPACE_STRRWRZtobjectR(((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyts<        &N K$