MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/self/root/usr/lib/python2.4/site-packages/simplejson/decoder.pyc
mò
ä‡Mc@s­dZdkZdkZdkZdklZydklZWne	j
o
dZnXdgZeiei
BeiBZd„Zeƒ\ZZZd„Zdd„Zhde<d	e<d
e<ZeideƒZhdd
<dd<dd<dd<dd<dd<dd<dd<ZdZdeeeid„ZepeZeideƒZdZeied „Z eied!„Z!de"fd"„ƒYZ#dS(#sImplementation of JSONDecoder
N(smake_scanner(s
scanstringtJSONDecodercCsudidƒ}tidjo0|d ddd…|dddd…}ntid|ƒ\}}|||fS(Nt 7FF80000000000007FF0000000000000thextbigiiÿÿÿÿtdd(tdecodet_BYTEStsyst	byteordertstructtunpacktnantinf(RRR((t6/usr/lib/python2.4/site-packages/simplejson/decoder.pyt_floatconstantss
0cCsS|idd|ƒd}|djo
|}n||idd|ƒ}||fS(Ns
ii(tdoctcounttpostlinenotcolnotrindex(RRRR((R
tlinecols


c	Csxt||ƒ\}}|djod}|||||fSnt||ƒ\}}d}||||||||fS(Ns%s: line %d column %d (char %d)s8%s: line %d column %d - line %d column %d (char %d - %d)(RRRRRtendtNonetfmttmsgt	endlinenotendcolno(	RRRRRRRRR((R
terrmsg$s
s	-InfinitytInfinitytNaNs(.*?)(["\\\x00-\x1f])t"u"s\u\t/u/tbutfutnu
tru
ttu	sutf-8cCsB|djo
t}ng}	|	i}
|d}xü|||ƒ}|djottd||ƒƒ‚n|iƒ}|i
ƒ\}
}|
o1t|
tƒpt|
|ƒ}
n|
|
ƒn|djoPnO|djoA|o)d|f}tt|||ƒƒ‚q!|
|ƒq3ny||}Wn+tj
ottd||ƒƒ‚nX|djoZy||}Wn;tj
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"|ƒ}|}|
|ƒq3Wdi#|	ƒ|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 attusInvalid \escape: iisInvalid \uXXXX escapeiiØiÿÛiÿÿs#Invalid \uXXXX\uXXXX surrogate pairis\uiii
iÜiuN($tencodingRtDEFAULT_ENCODINGtchunkstappendt_appendRtbegint_mtstchunkt
ValueErrorRtgroupstcontentt
terminatort
isinstancetunicodetstrictRtesct
IndexErrort_btchartKeyErrortreprtnext_endtlentinttuniRt
maxunicodetesc2tuni2tunichrtjoin(R.RR'R6R9R-R/R:R3R)R2R7RR+R,RBRCR@R=((R
t
py_scanstringAsp

	







.s
[ \t\n\r]*s 	

c
Cs–|\}}h}	|||d!}|djoƒ||jo*|||ƒiƒ}|||d!}n|djo|	|dfSq³|djottd||ƒƒ‚q³n|d7}x¯to§t	||||ƒ\}}|||d!djoM|||ƒiƒ}|||d!djottd||ƒƒ‚qGn|d7}yQ|||jo<|d7}|||jo|||dƒiƒ}q¡nWnt
j
onXy|||ƒ\}
}Wn+tj
ottd||ƒƒ‚nX|
|	|<yB||}||jo'|||dƒiƒ}||}nWnt
j
o
d}nX|d7}|djoPn.|d	jo ttd
||dƒƒ‚nyg||}||joL|d7}||}||jo'|||dƒiƒ}||}qnWnt
j
o
d}nX|d7}|djo ttd||dƒƒ‚qÀqÀW|dj	o||	ƒ}	n|	|fS(NiRt}sExpecting property namet:sExpecting : delimitersExpecting objecttt,sExpecting , delimiter(R.Rtpairstnextchart_wst_wR0RtTruet
scanstringR'R6tkeyR8t	scan_oncetvaluet
StopIterationtobject_hookR(
t.0R'R6RRRURNRMR.RRKRSRQRL((R
t
JSONObject”sv



 
 

%





 






%
c
Csè|\}}g}|||d!}	|	|jo.|||dƒiƒ}|||d!}	n|	djo||dfSn|i}xUtoMy|||ƒ\}}Wn+tj
ott
d||ƒƒ‚nX||ƒ|||d!}	|	|jo.|||dƒiƒ}|||d!}	n|d7}|	djoPn*|	djott
d||ƒƒ‚nyQ|||jo<|d7}|||jo|||dƒiƒ}qÂnWq‰tj
oq‰Xq‰W||fS(Nit]sExpecting objectRJsExpecting , delimiter(R.RtvaluesRLRMRNR*R+RORRRSRTR0RR8(
RVRRRNRMR.RR+RYRSRL((R
t	JSONArrayßs@

	





%
cBsDtZdZeeeeeed„Zeid„Zdd„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.

    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(R'tselfRUtparse_floattfloatt	parse_intR?tparse_constantt
_CONSTANTSt__getitem__R6RWtparse_objectRZtparse_arrayRPtparse_stringtmake_scannerRR(R[R'RUR\R^R_R6((R
t__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 dataN(	R[t
raw_decodeR.RNRtobjR>R0R(R[R.RNRRi((R
RJs*%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 decodedN(R[RRR.RgRiRRTR0(R[R.RgRRi((R
RhUs(
t__name__t
__module__t__doc__RRORft
WHITESPACEtmatchRRh(((R
Rs)($RltreRR	tsimplejson.scannerRetsimplejson._speedupsRPtc_scanstringtImportErrorRt__all__tVERBOSEt	MULTILINEtDOTALLtFLAGSRRtPosInftNegInfRRR`tcompiletSTRINGCHUNKt	BACKSLASHR(RORnRFRmtWHITESPACE_STRRWRZtobjectR(RR~RrRzR`R	RtRRR}RoRFRPRRxRyReR|RmRZRWR(RR((R
t?s2			
				!NN
K$