b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / json /
Filename/usr/lib64/python2.6/json/decoder.pyc
Size10.83 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed20-Jun-2019 19:45
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc @sSdZddkZddkZddklZlZyddklZWne j
o
dZnXdgZ ei ei
BeiBZed�ed�ed�ZZZd �Zdd
�Zhed 6ed 6ed
6ed6ed6dd6Zed�Zed�e�d�Zed�e�eide�Zhdd6dd6dd6dd6dd6d d!6d"d#6d$d%6Zd&Zdeeeid'�Z edj o
eZne Zd(�Z!ed�e!�eid)e�Z"e"id*�Z#ed+�e#�e"id,�Z$ed-�e$�e#e$e!eegZ%ee%�Z&de'fd.��YZ(dS(/sImplementation of JSONDecoder
iÿÿÿÿN(tScannertpattern(t
scanstringt JSONDecodertnantinfs-infcCsS|idd|�d}|djo
|}n||idd|�}||fS(Ns
ii(tcounttrindex(tdoctpostlinenotcolno((s$/usr/lib64/python2.6/json/decoder.pytlinecols


c Csyt||�\}}|djod}|i||||�St||�\}}d}|i|||||||�S(Ns#{0}: line {1} column {2} (char {3})s?{0}: line {1} column {2} - line {3} column {4} (char {5} - {6})(R tNonetformat( tmsgRR tendR
R tfmtt endlinenotendcolno((s$/usr/lib64/python2.6/json/decoder.pyterrmsgs
s -InfinitytInfinitytNaNttruetfalsetnullcCsR|id�}t|dd�}|djo||}n
||�}|dfS(Nitparse_constant(tgrouptgetattrR
(tmatchtcontexttctstfntrval((s$/usr/lib64/python2.6/json/decoder.pyt JSONConstant1s 
 s (-?Infinity|NaN|true|false|null)cCs¯tii|i|i��}|i�\}}}|p|o?t|dd�pt}|||pd|pd�}n&t|dd�pt }||�}|dfS(Nt parse_floattt parse_int(
t
JSONNumbertregexRtstringtspantgroupsRR
tfloattint(RRtintegertfractexpR!tres((s$/usr/lib64/python2.6/json/decoder.pyR'<s& s)(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?s(.*?)(["\\\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| djoPnQ| djoC|o+di | �} tt| ||���q#|| �q3ny||}
Wn+t
j
ottd||���nX|
djoYy||
}Wn:t j
o.di |
�} tt| ||���nX|d7}nY||d|d!}
|d}d } yÿt |
�d
jo
t�nt
|
d �}d |jo
d
jno¥tidjo�d} ||d|d!djp
t�n||d|d!}t |�d
jo
t�nt
|d �}d|d d>|dB}|d7}nt|�}Wn+tj
ott| ||���nX|}||�q3di|�|fS(NisUnterminated string starting atR2s\s"Invalid control character {0!r} attusInvalid \escape: {0!r}isInvalid \uXXXX escapeiiiØiÿÛiÿÿs#Invalid \uXXXX\uXXXX surrogate pairis\ui ii
iÜiu(R
tDEFAULT_ENCODINGtappendt
ValueErrorRRR+t
isinstancetunicodeRt
IndexErrortKeyErrortlenR-tsyst
maxunicodetunichrtjoin(R Rtencodingtstrictt_bt_mtchunkst_appendtbegintchunktcontentt
terminatorRtesctmtnext_endtunitesc2tuni2((s$/usr/lib64/python2.6/json/decoder.pyt
py_scanstringRsv

 

 





.


cCs@t|dd�}t|dt�}t|i|i�||�S(NRFRG(RR
tTrueRR)R(RRRFRG((s$/usr/lib64/python2.6/json/decoder.pyt
JSONString�ss\s*c

Cs¨h}|i}|||i��i�}|||d!}|djo||dfS|djottd||���n|d7}t|dd�}t|dt�}ti} xµto­t ||||�\}
}|||�i�}|||d!djottd||���n|||d�i�}y(| |d |d
|�i
�\} }Wn+t j
ottd ||���nX| ||
<|||�i�}|||d!}|d7}|djoPn|d jo ttd
||d���n|||�i�}|||d!}|d7}|djo ttd||d���qºqºWt|dd�} | dj o| |�}n||fS(Nit}R2sExpecting property nameRFRGt:sExpecting : delimitertidxRsExpecting objectt,sExpecting , delimitert object_hook( R)RR<RRR
RWt JSONScannertiterscanRtnextt
StopIteration(
RRt_wtpairsR RtnextcharRFRGR_tkeytvalueR]((s$/usr/lib64/python2.6/json/decoder.pyt
JSONObject¢sP 


 (



 

%
t{c
Cs\g}|i}|||i��i�}|||d!}|djo||dfSti}xïtoçy(||d|d|�i�\}}Wn+tj
ottd||���nX|i |�|||�i�}|||d!}|d7}|djoPn|djottd||���n|||�i�}qcW||fS(Nit]R[RsExpecting objectR\sExpecting , delimiter(
R)RR^R_RWR`RaR<RR;( RRRbtvaluesR RRdR_Rf((s$/usr/lib64/python2.6/json/decoder.pyt JSONArrayÎs. 
 (



s\[cBs\eZdZee�ZdddgZddddded�Z e
i d�Z d�Z
RS(sSimple JSON <http://json.org> 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.
t__init__tdecodet
raw_decodecCs:||_||_||_||_||_||_dS(sy``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, null, true, false.
This can be used to raise an exception if invalid JSON numbers
are encountered.

N(RFR]R$R&RRG(tselfRFR]R$R&RRG((s$/usr/lib64/python2.6/json/decoder.pyRls      cCs{|i|d||d�i��\}}|||�i�}|t|�jo%ttd||t|����n|S(s�
Return the Python representation of ``s`` (a ``str`` or ``unicode``
instance containing a JSON document)

R[is
Extra data(RnRRAR<R(RoR RbtobjR((s$/usr/lib64/python2.6/json/decoder.pyRm9s
*%cKsa|id|�y%|ii||�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.

RsNo JSON object could be decoded(t
setdefaultt_scannerR_R`RaR<(RoR tkwRpR((s$/usr/lib64/python2.6/json/decoder.pyRnEs %N(t__name__t
__module__t__doc__RtANYTHINGRrt__all__R
RWRlt
WHITESPACERRmRn(((s$/usr/lib64/python2.6/json/decoder.pyRôs  $ ()RvtreRBt json.scannerRRt_jsonRt c_scanstringt ImportErrorR
RxtVERBOSEt MULTILINEtDOTALLtFLAGSR,RtPosInftNegInfR RRWtFalset
_CONSTANTSR#R'tcompilet STRINGCHUNKt BACKSLASHR:RRVRXRyRgRkRwR^tobjectR(((s$/usr/lib64/python2.6/json/decoder.pyt<module>s\    &

 
&A

 )