/usr/lib64/python2.6/site-packages/simplejson
NameSizeModeActions
tests/-0755rm
compat.py10360644editdlrm
compat.pyc20400644editdlrm
decoder.py147210644editdlrm
decoder.pyc126500644editdlrm
decoder.pyo126500644editdlrm
encoder.py266290644editdlrm
encoder.pyc210780644editdlrm
encoder.pyo210780644editdlrm
ordered_dict.py33700644editdlrm
ordered_dict.pyc51900644editdlrm
ordered_dict.pyo51900644editdlrm
scanner.py46530644editdlrm
scanner.pyc51400644editdlrm
scanner.pyo51400644editdlrm
tool.py11360644editdlrm
tool.pyc14990644editdlrm
tool.pyo14990644editdlrm
_speedups.so1439930644editdlrm
__init__.py236880644editdlrm
__init__.pyc219670644editdlrm
__init__.pyo219670644editdlrm
Edit: /usr/lib64/python2.6/site-packages/simplejson/decoder.pyo (12650B)
Ñò }DVc@@sdZddklZddkZddkZddkZddklZlZl Z l Z l Z l Z l Z ddklZlZd„ZeƒZdgZeieiBeiBZd „Zeƒ\ZZZhed 6ed 6ed 6Zeid eƒZhe dƒd6e dƒd6e dƒd6e dƒd6e dƒd6e dƒd6e dƒd6e dƒd6ZdZ de"eei#e dƒi$e ei%d„Z&epe&Z'eideƒZ(d Z)de(i#e)d!„Z*e(i#e)d"„Z+de,fd#„ƒYZ-dS($sImplementation of JSONDecoder i(tabsolute_importNi(tfromhextbtut text_typet binary_typetPY3tunichr(t make_scannertJSONDecodeErrorcC@s3yddkl}|SWntj odSXdS(Ni(t scanstring(t _speedupsR t ImportErrortNone(R ((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyt_import_c_scanstring s t JSONDecodercC@srtdƒ}tidjo0|d ddd…|dddd…}ntid|ƒ\}}||| fS(Nt 7FF80000000000007FF0000000000000tbigiiÿÿÿÿtdd(Rtsyst byteordertstructtunpack(t_BYTEStnantinf((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyt_floatconstantss  0s -InfinitytInfinitytNaNs(.*?)(["\\\x00-\x1f])t"s\u005cs\t/sRs tfs tns trs ttsutf-8tc C@s‡|djo t}ng} | i} |d} xD|||ƒ} | djotd|| ƒ‚n| iƒ}| iƒ\} }| o:| o$t| tƒ ot| |ƒ} n| | ƒn|djoPnB|djo4|od}t|||ƒ‚q| |ƒq3ny||}Wn%tj otd|| ƒ‚nX|djoJy||}Wn+t j od}t|||ƒ‚nX|d7}nÇd}||d|d !}|dd !}t |ƒd jp|d jp |d jot|||dƒ‚nyt |dƒ}Wn)t j ot|||dƒ‚nX|d 7}|djoõ|d@djoä|||d !djoÌ||d |d!}|dd !}t |ƒd jo“|d jp |d j oxyt |dƒ}Wn%t j ot|||ƒ‚nX|d@djo(d|dd>|dB}|d7}qZq^nt |ƒ}| |ƒq3|| ƒ|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 atRs\sInvalid control character %r atRsInvalid \X escape sequence %rsInvalid \uXXXX escape sequenceiiitxtXiiÿÿiüiØs\uiiÜii N(R tDEFAULT_ENCODINGtappendR tendtgroupst isinstanceRt IndexErrortKeyErrortlentintt ValueErrorR(tsR(tencodingtstrictt_bt_mt_joint_PY3t _maxunicodetchunkst_appendtbegintchunktcontentt terminatortmsgtesctchartescXtunitesc2tuni2((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyt py_scanstring1s~           -   .   s [ \t\n\r]*s c C@sü|\} } |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 onX|| | ƒ\}} | i||fƒyB| | } | |jo'|| | dƒiƒ} | | } nWntj o d} nX| d7} | djoPn(| djotd | | dƒ‚nyg| | } | |joL| d7} | | } | |jo'|| | dƒiƒ} | | } qRnWntj o d} nX| d7} | djotd| | dƒ‚q"q"W|dj o|| ƒ}|| fSt| ƒ} |dj o|| ƒ} n| | fS( NiRt}s1Expecting property name enclosed in double quotest:sExpecting ':' delimiterR#t,sExpecting ',' delimiter or '}'( R t setdefaultR(R tTrueR R+R'tdict(tstateR1R2t scan_oncet object_hooktobject_pairs_hooktmemot_wt_wsR0R(tmemo_gettpairstnextchartresulttkeytvalue((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyt JSONObjectŽs–              %                   c C@sÔ|\}}g}|||d!}||jo.|||dƒiƒ}|||d!}n|djo||dfS|djotd||ƒ‚n|i}x!to|||ƒ\} }|| ƒ|||d!}||jo.|||dƒiƒ}|||d!}n|d7}|djoPn(|djotd||dƒ‚nyQ|||jo<|d7}|||jo|||dƒiƒ}q®nWq©tj oq©Xq©W||fS(Nit]R#sExpecting value or ']'RHsExpecting ',' delimiter or ']'(R(R R'RJR+( RLRMRQRRR0R(tvaluesRUR9RX((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyt JSONArrayìs@           % cB@sSeZdZdddddedd„Zeied„Z deied„Z RS(sSimple JSON decoder Performs the following translations in decoding by default: +---------------+-------------------+ | JSON | Python | +===============+===================+ | object | dict | +---------------+-------------------+ | array | list | +---------------+-------------------+ | string | str, 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. cC@s¥|djo t}n||_||_||_|pt|_|pt|_|pt i |_ ||_ 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&R1RNROtfloatt parse_floatR.t parse_intt _CONSTANTSt __getitem__tparse_constantR2RYt parse_objectR\t parse_arrayR t parse_stringRPRRM(tselfR1RNR^R_RbR2RO((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyt__init__.s.          cC@s|o&t|tƒo|i|iƒ}n|i|ƒ\}}|||ƒiƒ}|t|ƒjotd||t|ƒƒ‚n|S(szReturn the Python representation of ``s`` (a ``str`` or ``unicode`` instance containing a JSON document) s Extra data(R*RtdecodeR1t raw_decodeR(R-R (RfR0RQR6tobjR(((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyRhksicC@sâ|djotd||ƒ‚n|o!t|tƒ otdƒ‚nt|ƒ|jobt||ƒ}|djo|d7}qÀ|djo&|||d!djo|d7}qÀn|i|d |||ƒiƒƒS( sºDecode 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. Optionally, ``idx`` can be used to specify an offset in ``s`` where the JSON document begins. This can be used to decode a JSON document from a string that may have extraneous data at the end. isExpecting values$Input string must be text, not bytesiÿþiiïistidx(R R*Rt TypeErrorR-tordRMR((RfR0RkRQR6tord0((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyRixs  %N( t__name__t __module__t__doc__R RJRgt WHITESPACEtmatchRRhRi(((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyRs    ; (.Rqt __future__RtreRRtcompatRRRRRRRtscannerRR Rt c_scanstringt__all__tVERBOSEt MULTILINEtDOTALLtFLAGSRRtPosInftNegInfR`tcompilet STRINGCHUNKt BACKSLASHR&R RJRstjoint maxunicodeRER RrtWHITESPACE_STRRYR\tobjectR(((s8/usr/lib64/python2.6/site-packages/simplejson/decoder.pyts>   4     'DV \$