选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
3 \”>ã"@sBdZddlZyddlmZWnek r4dZYnXyddlmZWnek r^dZYnXyddlmZ Wnek rˆdZ YnXej dƒZ ej dƒZ ej dƒZ d d d d d dddœZx&edƒD]ZejeeƒdjeƒƒqÆWedƒZdd„ZepúeZdd„Ze�p eZGdd„deƒZeeeeeeee e!ej"f dd„Z#dS)zImplementation of JSONEncoder éN)Úencode_basestring_ascii)Úencode_basestring)Ú make_encoderz[\x00-\x1f\\"\b\f\n\r\t]z([\\"]|[^\ -~])s[€-ÿ]z\\z\"z\bz\fz\nz\rz\t)ú\ú"úú Ú ú ú é z \u{0:04x}ÚinfcCsdd„}dtj||ƒdS)z5Return a JSON representation of a Python string cSst|jdƒS)Nr)Ú ESCAPE_DCTÚgroup)Úmatch©rú$/usr/lib64/python3.6/json/encoder.pyÚreplace(sz%py_encode_basestring..replacer)ÚESCAPEÚsub)ÚsrrrrÚpy_encode_basestring$srcCsdd„}dtj||ƒdS)zAReturn an ASCII-only JSON representation of a Python string c Ssv|jdƒ}yt|Stk rpt|ƒ}|dkr.replacer)Ú ESCAPE_ASCIIr)rrrrrÚpy_encode_basestring_ascii0sr c @sNeZdZdZdZdZdddddddddœdd „Zd d „Zd d „Zddd„Z dS)Ú JSONEncoderaZExtensible JSON encoder for Python data structures. Supports the following objects and types by default: +-------------------+---------------+ | Python | JSON | +===================+===============+ | dict | object | +-------------------+---------------+ | list, tuple | array | +-------------------+---------------+ | str | string | +-------------------+---------------+ | int, float | number | +-------------------+---------------+ | True | true | +-------------------+---------------+ | False | false | +-------------------+---------------+ | None | null | +-------------------+---------------+ To extend this to recognize other objects, subclass and implement a ``.default()`` method with another method that returns a serializable object for ``o`` if possible, otherwise it should call the superclass implementation (to raise ``TypeError``). z, z: FTN)ÚskipkeysÚ ensure_asciiÚcheck_circularÚ allow_nanÚ sort_keysÚindentÚ separatorsÚdefaultc CsZ||_||_||_||_||_||_|dk r:|\|_|_n|dk rHd|_|dk rV||_dS)aÆConstructor for JSONEncoder, with sensible defaults. If skipkeys is false, then it is a TypeError to attempt encoding of keys that are not str, int, float or None. If skipkeys is True, such items are simply skipped. If ensure_ascii is true, the output is guaranteed to be str objects with all incoming non-ASCII characters escaped. If ensure_ascii is false, the output can contain non-ASCII characters. If check_circular is true, then lists, dicts, and custom encoded objects will be checked for circular references during encoding to prevent an infinite recursion (which would cause an OverflowError). Otherwise, no such check takes place. If allow_nan is true, then NaN, Infinity, and -Infinity will be encoded as such. This behavior is not JSON specification compliant, but is consistent with most JavaScript based encoders and decoders. Otherwise, it will be a ValueError to encode such floats. If sort_keys is true, then the output of dictionaries will be sorted by key; this is useful for regression tests to ensure that JSON serializations can be compared on a day-to-day basis. If indent is a non-negative integer, then JSON array elements and object members will be pretty-printed with that indent level. An indent level of 0 will only insert newlines. None is the most compact representation. If specified, separators should be an (item_separator, key_separator) tuple. The default is (', ', ': ') if *indent* is ``None`` and (',', ': ') otherwise. To get the most compact JSON representation, you should specify (',', ':') to eliminate whitespace. If specified, default is a function that gets called for objects that can't otherwise be serialized. It should return a JSON encodable version of the object or raise a ``TypeError``. Nú,) r"r#r$r%r&r'Úitem_separatorÚ key_separatorr)) Úselfr"r#r$r%r&r'r(r)rrrÚ__init__hs+zJSONEncoder.__init__cCstd|jjƒ‚dS)alImplement this method in a subclass such that it returns a serializable object for ``o``, or calls the base implementation (to raise a ``TypeError``). For example, to support arbitrary iterators, you could implement default like this:: def default(self, o): try: iterable = iter(o) except TypeError: pass else: return list(iterable) # Let the base class default method raise the TypeError return JSONEncoder.default(self, o) z,Object of type '%s' is not JSON serializableN)Ú TypeErrorÚ __class__Ú__name__)r-Úorrrr) szJSONEncoder.defaultcCsNt|tƒr |jrt|ƒSt|ƒS|j|dd�}t|ttfƒsDt|ƒ}dj|ƒS)z×Return a JSON string representation of a Python data structure. >>> from json.encoder import JSONEncoder >>> JSONEncoder().encode({"foo": ["bar", "baz"]}) '{"foo": ["bar", "baz"]}' T)Ú _one_shotÚ) Ú isinstanceÚstrr#rrÚ iterencodeÚlistÚtupleÚjoin)r-r2ÚchunksrrrÚencode¶s zJSONEncoder.encodec Cs¦|jr i}nd}|jrt}nt}|jtjtt fdd„}|rvtdk rv|j dkrvt||j ||j |j |j |j |j|jƒ }n&t||j ||j ||j |j |j |j|ƒ }||dƒS)zØEncode the given object and yield each string representation as available. For example:: for chunk in JSONEncoder().iterencode(bigobject): mysocket.write(chunk) NcSsJ||krd}n$||krd}n||kr*d}n||ƒS|sFtdt|ƒƒ‚|S)NZNaNZInfinityz -Infinityz2Out of range float values are not JSON compliant: )Ú ValueErrorÚrepr)r2r%Z_reprZ_infZ_neginfÚtextrrrÚfloatstrßs z(JSONEncoder.iterencode..floatstrr)r$r#rrr%ÚfloatÚ__repr__ÚINFINITYÚc_make_encoderr'r)r,r+r&r"Ú_make_iterencode)r-r2r3ÚmarkersÚ_encoderr@Ú _iterencoderrrr7Ìs&       zJSONEncoder.iterencode)F) r1Ú __module__Ú __qualname__Ú__doc__r+r,r.r)r<r7rrrrr!Is6r!cs®ˆdk rˆˆˆƒ rdˆ‰‡‡‡‡‡‡‡‡‡ ‡ ‡‡‡‡‡‡‡‡fdd„‰ ‡‡‡‡‡‡‡‡‡ ‡ ‡ ‡ ‡ ‡‡‡‡‡‡‡‡fdd„‰‡‡‡‡‡‡‡‡ ‡ ‡‡‡‡‡‡‡‡fdd„‰ˆS)Nú c 3s¤|sdVdSˆdk r6ˆ |ƒ}|ˆkr.ˆdƒ‚|ˆ|<d}ˆdk rh|d7}dˆ|}ˆ|}||7}nd}ˆ}d}xô|D]ì}|rˆd}n|}ˆ |ˆƒr¦|ˆ|ƒVqz|dkrº|dVqz|dkrÎ|d Vqz|dkrâ|d Vqzˆ |ˆ ƒrü|ˆ|ƒVqzˆ |ˆ ƒ�r|ˆ|ƒVqz|Vˆ |ˆˆfƒ�r:ˆ||ƒ}n"ˆ |ˆ ƒ�rRˆ||ƒ}n ˆ||ƒ}|EdHqzW|dk �rŠ|d8}dˆ|Vd Vˆdk �r ˆ|=dS) Nz[]zCircular reference detectedú[ér TFÚnullÚtrueÚfalseú]r) ZlstÚ_current_indent_levelÚmarkeridZbufÚnewline_indentZ separatorÚfirstÚvaluer;)r=rGÚ _floatstrÚ_indentÚ_intstrÚ_item_separatorrHÚ_iterencode_dictÚ_iterencode_listÚdictrAÚidÚintr5r8rFr6r9rrr]s\               z*_make_iterencode.._iterencode_listc 3sL|sdVdSˆdk r6ˆ|ƒ}|ˆkr.ˆdƒ‚|ˆ|<dVˆdk rh|d7}dˆ|}ˆ|}|Vnd}ˆ}d}ˆ rŽt|jƒdd„d �}n|jƒ}�xx|D�]n\}}ˆ|ˆƒr´nrˆ|ˆ ƒrȈ|ƒ}n^|dkrÖd }nP|d kräd }nB|dkròd }n4ˆ|ˆƒ�rˆ|ƒ}nˆ �rqžntdt|ƒdƒ‚|�r2d }n|Vˆ|ƒVˆ Vˆ|ˆƒ�r`ˆ|ƒVqž|dk�rrd Vqž|dk�r„d Vqž|d k�r–d Vqžˆ|ˆƒ�r®ˆ|ƒVqžˆ|ˆ ƒ�rƈ|ƒVqžˆ|ˆˆfƒ�râˆ||ƒ} n"ˆ|ˆ ƒ�rúˆ||ƒ} n ˆ||ƒ} | EdHqžW|dk �r2|d8}dˆ|VdVˆdk �rHˆ|=dS)Nz{}zCircular reference detectedú{rNr TcSs|dS)Nrr)ZkvrrrÚasz<_make_iterencode.._iterencode_dict..)ÚkeyrPFrQrOzkey z is not a stringú})ÚsortedÚitemsr/r>) ZdctrSrTrUr+rVrfrcrWr;)r=rGrXrYrZr[rHr\r]Ú_key_separatorÚ _skipkeysÚ _sort_keysr^rAr_r`r5r8rFr6r9rrr\Ms‚                      z*_make_iterencode.._iterencode_dictc3sˆ |ˆƒrˆ|ƒVnæ|dkr&dVnÖ|dkr6dVnÆ|dkrFdVn¶ˆ |ˆ ƒr\ˆ|ƒVn ˆ |ˆ ƒrrˆ|ƒVnŠˆ |ˆ ˆfƒr’ˆ||ƒEdHnjˆ |ˆƒr®ˆ||ƒEdHnNˆdk rÖˆ |ƒ}|ˆkrΈdƒ‚|ˆ|<ˆ|ƒ}ˆ||ƒEdHˆdk rüˆ|=dS)NrOTrPFrQzCircular reference detectedr)r2rSrT)r=Ú_defaultrGrXrZrHr\r]r^rAr_r`r5r8rFr6r9rrrHœs2       z%_make_iterencode.._iterencoder)rFrjrGrYrXrgr[rirhr3r=r^rAr_r`r5r8r6r9rZr)r=rjrGrXrYrZr[rHr\r]rgrhrir^rAr_r`r5r8rFr6r9rrEs .84O,rE)$rKÚreZ_jsonrZc_encode_basestring_asciiÚ ImportErrorrZc_encode_basestringrrDÚcompilerrZHAS_UTF8rÚrangeÚiÚ setdefaultÚchrrrArCrr Úobjectr!r=r^r_r`r5r8r6r9Ú__str__rErrrrÚsT        >