⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.67
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib64
/
python3.9
/
json
/
__pycache__
/
View File Name :
decoder.cpython-39.opt-1.pyc
a DOg0 @ s d Z ddlZddlmZ zddlmZ W n ey> dZY n0 ddgZej ej B ejB Ze dZe dZe d ZG d d deZeeedZedeZd ddddddddZdd ZdeejfddZepeZedeZdZdejefddZejefdd ZG d!d deZdS )"zImplementation of JSONDecoder N)scanner) scanstringJSONDecoderJSONDecodeErrornaninfz-infc @ s e Zd ZdZdd Zdd ZdS )r a 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 lineno: The line corresponding to pos colno: The column corresponding to pos c C sb | dd|d }||dd| }d||||f }t| | || _|| _|| _|| _|| _d S )N r z%s: line %d column %d (char %d)) countrfind ValueError__init__msgdocposlinenocolno)selfr r r r r errmsg r $/usr/lib64/python3.9/json/decoder.pyr s zJSONDecodeError.__init__c C s | j | j| j| jffS )N) __class__r r r )r r r r __reduce__* s zJSONDecodeError.__reduce__N)__name__ __module____qualname____doc__r r r r r r r s )z -InfinityZInfinityNaNz(.*?)(["\\\x00-\x1f])"\/r )r r r bfnrtc C s` | |d |d }t |dkrL|d dvrLzt|dW S tyJ Y n0 d}t|| |d S )Nr ZxX zInvalid \uXXXX escape)lenintr r )sr escr r r r _decode_uXXXX; s r1 Tc C s g }|j }|d }|| |}|du r0td| || }| \} } | rP|| | dkr^qn.| dkr|rd| }t|| |n || qz| | }W n ty td| |dY n0 |dkrz|| } W n( ty d|}t|| |Y n0 |d7 }nt| |}|d 7 }d | kr.dkrn n`| ||d d krt| |d }d| krndkrn n d|d d> |d B }|d7 }t|} || qd ||fS )a 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.r NzUnterminated string starting atr r z"Invalid control character {0!r} atuzInvalid \escape: {0!r}r* i i z\ui i i ) appendr endgroupsformat IndexErrorKeyErrorr1 chrjoin)r/ r8 strictZ_bZ_mchunks_appendZbeginchunkZcontent terminatorr r0 charZuniZuni2r r r py_scanstringE sV 2 rE z [ \t\n\r]*z c C s | \}} g } | j }|d u ri }|j}|| | d } | dkr| |v rb||| } || | d } | dkr|d ur|| }|| d fS i } |d ur|| } | | d fS | dkrtd|| | d7 } t|| |\}} |||}|| | d dkr"||| } || | d dkr"td|| | d7 } z:|| |v rb| d7 } || |v rb||| d } W n tyx Y n0 z||| \}} W n6 ty } ztd||jd W Y d }~n d }~0 0 |||f z0|| } | |v r||| d } || } W n ty d} Y n0 | d7 } | dkr2qn| d krLtd || d ||| } || | d } | d7 } | dkrtd|| d q|d ur|| }|| fS t| } |d ur|| } | | fS )Nr r }z1Expecting property name enclosed in double quotes:zExpecting ':' delimiterExpecting valuer6 ,Expecting ',' delimiter) r7 setdefaultr8 r r r; StopIterationvaluedict) s_and_endr? scan_onceobject_hookobject_pairs_hookmemo_w_wsr/ r8 pairsZpairs_appendZmemo_getnextcharresultkeyrM errr r r JSONObject s & r[ c C sv | \}}g }|||d }||v rF|||d }|||d }|dkrZ||d fS |j}z|||\} }W n4 ty } ztd|| jd W Y d } ~ n d } ~ 0 0 || |||d }||v r|||d }|||d }|d7 }|dkrqnn|dkrtd||d z:|| |v rT|d7 }|| |v rT|||d }W q` tyj Y q`0 q`||fS )Nr ]rH rI rJ )r8 r7 rL r rM r; )rO rP rT rU r/ r8 valuesrW rA rM rZ r r r JSONArray s> & r^ c @ s@ e Zd ZdZdddddddddZejfddZdd dZdS ) r a Simple JSON
decoder Performs the following translations in decoding by default: +---------------+-------------------+ | JSON | Python | +===============+===================+ | object | dict | +---------------+-------------------+ | array | list | +---------------+-------------------+ | string | str | +---------------+-------------------+ | number (int) | int | +---------------+-------------------+ | 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. NT)rQ parse_float parse_intparse_constantr? rR c C sZ || _ |pt| _|pt| _|p"tj| _|| _|| _ t | _t| _ t| _i | _t| | _dS )a ``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). ``object_pairs_hook``, if specified will be called with the result of every JSON object decoded with an ordered list of pairs. The return value of ``object_pairs_hook`` will be used instead of the ``dict``. This feature can be used to implement custom decoders. 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. 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. If ``strict`` is false (true is the default), then control characters will be allowed inside strings. Control characters in this context are those with character codes in the 0-31 range, including ``'\t'`` (tab), ``'\n'``, ``'\r'`` and ``'\0'``. N)rQ floatr_ r. r` _CONSTANTS__getitem__ra r? rR r[ Zparse_objectr^ Zparse_arrayr Zparse_stringrS r Zmake_scannerrP )r rQ r_ r` ra r? rR r r r r s # zJSONDecoder.__init__c C sF | j |||d d\}}||| }|t|krBtd|||S )zlReturn the Python representation of ``s`` (a ``str`` instance containing a JSON document). r )idxz Extra data) raw_decoder8 r- r )r r/ rT objr8 r r r decodeL s zJSONDecoder.decoder c C sR z| ||\}}W n4 tyH } ztd||jdW Y d}~n d}~0 0 ||fS )a= Decode a JSON document from ``s`` (a ``str`` 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. rH N)rP rL r rM )r r/ re rg r8 rZ r r r rf W s &zJSONDecoder.raw_decode)r ) r r r r r WHITESPACEmatchrh rf r r r r r s 0) r reZjsonr Z_jsonr Zc_scanstringImportError__all__VERBOSE MULTILINEDOTALLFLAGSrb r ZPosInfZNegInfr r rc compileZSTRINGCHUNKZ BACKSLASHr1 rj rE ri ZWHITESPACE_STRr[ r^ objectr r r r r
s> = Q%