/opt/alt/python27/lib64/python2.7/site-packages/simplejson
NameSizeModeActions
tests/-0755rm
decoder.py151480644editdlrm
decoder.pyc137190644editdlrm
decoder.pyo138380644editdlrm
encoder.py200600644editdlrm
encoder.pyc171720644editdlrm
encoder.pyo173770644editdlrm
ordered_dict.py33700644editdlrm
ordered_dict.pyc54240644editdlrm
ordered_dict.pyo54240644editdlrm
scanner.py25600644editdlrm
scanner.pyc28250644editdlrm
scanner.pyo28610644editdlrm
tool.py10210644editdlrm
tool.pyc13710644editdlrm
tool.pyo13710644editdlrm
_speedups.so425520755editdlrm
__init__.py186260644editdlrm
__init__.pyc175870644editdlrm
__init__.pyo176560644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyo (13838B)
Ñò jš¤Mc @s¡dZddkZddkZddkZddklZd„ZeƒZdgZei ei Bei BZ d„Z e ƒ\ZZZdefd„ƒYZd „Zdd „Zhed 6ed 6ed 6Zeide ƒZhdd6dd6dd6dd6dd6dd6dd6dd6ZdZdeeeid „ZepeZeid!e ƒZd"Z deie d#„Z!eie d$„Z"de#fd%„ƒYZ$dS(&sImplementation of JSONDecoder iÿÿÿÿN(t make_scannercCs3yddkl}|SWntj odSXdS(Niÿÿÿÿ(t scanstring(tsimplejson._speedupsRt ImportErrortNone(R((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt_import_c_scanstrings t JSONDecodercCsudidƒ}tidjo0|d ddd…|dddd…}ntid|ƒ\}}||| fS(Nt 7FF80000000000007FF0000000000000thextbigiiÿÿÿÿtdd(tdecodetsyst byteordertstructtunpack(t_BYTEStnantinf((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt_floatconstantss 0tJSONDecodeErrorcBseZdZdd„ZRS(sØSubclass 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) cCs£ti|t|||d|ƒƒ||_||_||_||_t||ƒ\|_|_ |dj ot||ƒ\|_ |_ nd\|_ |_ dS(Ntend(NN( t ValueErrort__init__terrmsgtmsgtdoctposRtlinecoltlinenotcolnoRt endlinenotendcolno(tselfRRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR-s"     N(t__name__t __module__t__doc__RR(((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR s cCsS|idd|ƒd}|djo |}n||idd|ƒ}||fS(Ns ii(tcounttrindex(RRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR:s   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)(RR( RRRRRRtfmtRR ((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyRCs s -InfinitytInfinitytNaNs(.*?)(["\\\x00-\x1f])u"t"u\s\u/t/utbu tfu tnu tru ttsutf-8c Cs|djo t}ng}|i}|d}xÐ|||ƒ} | djotd||ƒ‚n| iƒ}| iƒ\} } | o1t| tƒpt| |ƒ} n|| ƒn| djoPnI| djo;|o#d| f} t| ||ƒ‚q|| ƒq3ny||} Wn%tj otd||ƒ‚nX| djoTy|| }Wn5t j o)dt | ƒ} t| ||ƒ‚nX|d7}nK||d|d!} |d}t | ƒd jod } t| ||ƒ‚nt | d ƒ}d |jo d jno½t idjo­d} ||d|d!djpt| ||ƒ‚n||d|d!}t |ƒd jot| ||ƒ‚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_ENCODINGtappendRRtgroupst isinstancetunicodet IndexErrortKeyErrortreprtlentintR t maxunicodetunichrtjoin(tsRtencodingtstrictt_bt_mtchunkst_appendtbegintchunktcontentt terminatorRtesctchartnext_endtunitesc2tuni2((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt py_scanstring`sp            .  s [ \t\n\r]*s c Cs(|\} } |djo h}n|i} g} | | | d!} | djoÅ| |jo*|| | ƒiƒ} | | | d!} n| djoZ|dj o|| ƒ}|| dfSh} |dj o|| ƒ} n| | dfS| djotd| | ƒ‚qn| d7} x¯to§t| | ||ƒ\}} | ||ƒ}| | | d!djoG|| | ƒiƒ} | | | d!djotd| | ƒ‚q²n| d7} yQ| | |jo<| d7} | | |jo|| | dƒiƒ} q nWntj onXy|| | ƒ\}} Wn%tj otd| | ƒ‚nX| i||fƒyB| | } | |jo'|| | dƒiƒ} | | } nWntj o d} nX| d7} | djoPn(| d jotd | | dƒ‚nyg| | } | |joL| d7} | | } | |jo'|| | dƒiƒ} | | } q~nWntj o d} nX| d7} | djotd| | dƒ‚q"q"W|dj o|| ƒ}|| fSt | ƒ} |dj o|| ƒ} n| | fS( NiR*t}sExpecting property namet:sExpecting : delimitersExpecting objecttt,sExpecting , delimiter( Rt setdefaultRRtTrueRR7t StopIterationR3tdict(t.0R@RAt scan_oncet object_hooktobject_pairs_hooktmemot_wt_wsR?Rtmemo_gettpairstnextchartresulttkeytvalue((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt JSONObject´s”              %                   c CsÙ|\}}g}|||d!}||jo.|||dƒiƒ}|||d!}n|djo||dfS|i}xItoAy|||ƒ\} }Wn%tj otd||ƒ‚nX|| ƒ|||d!}||jo.|||dƒiƒ}|||d!}n|d7}|djoPn$|djotd||ƒ‚nyQ|||jo<|d7}|||jo|||dƒiƒ}q³nWq†tj oq†Xq†W||fS(Nit]sExpecting objectRTsExpecting , delimiter(RR3RVRWRR7( RYRZR^R_R?RtvaluesRbRERe((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt JSONArraysB          % cBsGeZdZdddddedd„Zeid„Zdd„Z RS(sSimple JSON 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|_h|_t|ƒ|_dS(s *encoding* determines the encoding used to interpret any :class:`str` objects decoded by this instance (``'utf-8'`` by default). It has no effect when decoding :class:`unicode` objects. Note that currently only encodings that are a superset of ASCII work, strings of other encodings should be passed in as :class:`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 :class:`dict`. This can be used to provide custom deserializations (e.g. to support JSON-RPC class hinting). *object_pairs_hook* is an optional function that will be called with the result of any object literal decode with an ordered list of pairs. The return value of *object_pairs_hook* will be used instead of the :class:`dict`. This feature can be used to implement custom decoders that rely on the order that the key and value pairs are decoded (for example, :func:`collections.OrderedDict` will remember the order of insertion). If *object_hook* is also defined, the *object_pairs_hook* takes priority. *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. :class:`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. :class:`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. *strict* controls the parser's behavior when it encounters an invalid control character in a string. The default setting of ``True`` means that unescaped control characters are parse errors, if ``False`` then control characters will be allowed in strings. N(R@R[R\tfloatt parse_floatR;t parse_intt _CONSTANTSt __getitem__tparse_constantRARft parse_objectRit parse_arrayRt parse_stringR]RRZ(R!R@R[RkRlRoRAR\((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyRRs.        cCsu|i|d||dƒiƒƒ\}}|||ƒiƒ}|t|ƒjotd||t|ƒƒ‚n|S(szReturn the Python representation of ``s`` (a ``str`` or ``unicode`` instance containing a JSON document) tidxis Extra data(t raw_decodeRR:R(R!R?R^tobjR((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR s *icCsNy|i||ƒ\}}Wn%tj 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(RZRWR(R!R?RsRuR((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyRt˜s N( R"R#R$RRVRt WHITESPACEtmatchR Rt(((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR4s    9 (%R$treR Rtsimplejson.scannerRRt c_scanstringt__all__tVERBOSEt MULTILINEtDOTALLtFLAGSRR)tPosInftNegInfRRRRRRmtcompilet STRINGCHUNKt BACKSLASHR2RVRwRPRRvtWHITESPACE_STRRfRitobjectR(((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyts>         &N Z$