/opt/cloudlinux/venv/lib/python3.11/site-packages/simplejson/__pycache__
NameSizeModeActions
compat.cpython-311.pyc13650644editdlrm
decoder.cpython-311.pyc172990644editdlrm
encoder.cpython-311.pyc309030644editdlrm
errors.cpython-311.pyc30280644editdlrm
ordered_dict.cpython-311.pyc63990644editdlrm
raw_json.cpython-311.pyc7620644editdlrm
scanner.cpython-311.pyc41940644editdlrm
tool.cpython-311.pyc25200644editdlrm
__init__.cpython-311.pyc233020644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/simplejson/__pycache__/encoder.cpython-311.pyc (30903B)
§ Ô•Ô,�@°ã óÚ—dZddlmZddlZddlmZddlZddlmZm Z m Z m Z m Z d„Z e ¦«\ZZddlmZdd lmZejd ¦«Zejd ¦«Zejd ¦«Zd dddddddœZed¦«D]%Ze ee¦«defz¦«Œ&[eZe dfd„Ze fd„Z epe Z!Gd„de"¦«Z#Gd„de#¦«Z$e e%e de&e'e(e e)e*e+e,e-f d„Z.dS)zImplementation of JSONEncoder é)Úabsolute_importN)Ú itemgetteré)Ú binary_typeÚ text_typeÚ string_typesÚ integer_typesÚPY3cóN— ddlm}|j|jfS#t$rYdSwxYw)Nr©Ú _speedups)NN)Úr Úencode_basestring_asciiÚ make_encoderÚ ImportErrorr s úf/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/simplejson/encoder.pyÚ_import_speedupsr sL€ðØÐÐÐÐÐØÔ0°)Ô2HÐHÐHøÝ ððð؈zˆzðøøøs ‚– $£$)ÚPosInf)ÚRawJSONz[\x00-\x1f\\"]z([\\"]|[^\ -~])z [\x80-\xff]z\\z\"z\bz\fz\nz\rz\t)ú\ú"úú ú ú ú é ú\u%04xrcóV—|rWt|t¦«rt|d¦«}nÞt|¦«turt |¦«}n­t|t¦«r+t  |¦«�t|d¦«}nmt|¦«ttfvrPt|t¦«rt |¦«}n t |¦«d}d„}|t  ||¦«z|zS)z5Return a JSON representation of a Python string úutf-8NrcóB—t| d¦«S)Nr)Ú ESCAPE_DCTÚgroup)Úmatchs rÚreplacez"encode_basestring..replace=s€Ý˜%Ÿ+š+ a™.œ.Ô)Ð)ó) Ú isinstanceÚbytesÚstrÚtypeÚ__str__ÚHAS_UTF8ÚsearchÚunicodeÚ__getnewargs__ÚESCAPEÚsub)ÚsÚ_PY3Ú_qr%s rÚencode_basestringr5's€ð ð1Ý �a�Ñ Ô ð Ý�A�w‘”ˆAˆAÝ �!‰WŒW�CÐ Ð õ— ’ ˜A‘”ˆAøå �a�Ñ Ô ð 1¥(§/¢/°!Ñ"4Ô"4Ð"@ݘ˜7Ñ#Ô#ˆAˆAÝ �!‰WŒW�S¥'˜NÐ *Ð *õ˜!�SÑ!Ô!ð 1Ý—K’K ‘N”N��å×*Ò*¨1Ñ-Ô-¨aÔ0�ð*ð*ð*à •— ’ ˜7 AÑ&Ô&Ñ &¨Ñ +Ð+r&cóp—|rWt|t¦«rt|d¦«}nÞt|¦«turt |¦«}n­t|t¦«r+t  |¦«�t|d¦«}nmt|¦«ttfvrPt|t¦«rt |¦«}n t |¦«d}d„}dtt  ||¦«¦«zdzS)zAReturn an ASCII-only JSON representation of a Python string r Nrcóà—| d¦«} t|S#t$r?t|¦«}|dkrd|fzcYS|dz}d|dz dzz}d|dzz}d||fzcYSwxYw) NririØé iÿiÜz \u%04x\u%04x)r#r"ÚKeyErrorÚord)r$r2ÚnÚs1Ús2s rr%z+py_encode_basestring_ascii..replaceXs£€Ø �KŠK˜‰NŒNˆð 3ݘa”=Ð øÝð 3ð 3ð 3Ý�A‘”ˆAØ�7Š{ˆ{à  A 4Ñ'Ð'Ð'Ð'ð�W‘ �Ø  R¡¨5Ñ0Ñ1�ؘq 5™yÑ)�à'¨2¨r¨(Ñ2Ð2Ð2Ð2ð 3øøøs— $¤%A-Á A-Á,A-r) r'r(r)r*r+r,r-r.r/Ú ESCAPE_ASCIIr1)r2r3r%s rÚpy_encode_basestring_asciir?Bs€ð ð1Ý �a�Ñ Ô ð Ý�A�w‘”ˆAˆAÝ �!‰WŒW�CÐ Ð õ— ’ ˜A‘”ˆAøå �a�Ñ Ô ð 1¥(§/¢/°!Ñ"4Ô"4Ð"@ݘ˜7Ñ#Ô#ˆAˆAÝ �!‰WŒW�S¥'˜NÐ *Ð *õ˜!�SÑ!Ô!ð 1Ý—K’K ‘N”N��å×*Ò*¨1Ñ-Ô-¨aÔ0�ð3ð3ð3ð ••\×%Ò% g¨qÑ1Ô1Ñ2Ô2Ñ 2°SÑ 8Ð8r&cóB—eZdZdZdZdZ d d„Zd „Zd „Zd „Z dS) Ú JSONEncoderaZExtensible JSON encoder for Python data structures. Supports the following objects and types by default: +-------------------+---------------+ | Python | JSON | +===================+===============+ | dict, namedtuple | object | +-------------------+---------------+ | list, tuple | array | +-------------------+---------------+ | str, unicode | string | +-------------------+---------------+ | int, long, 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: FTNr cóf—||_||_||_||_||_| |_| |_| |_||_| |_ ||_ ||_ ||_ ||_ |�t|t¦«s|dz}||_|�|\|_|_n |�d|_| �| |_||_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, long, 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 unicode characters escaped. If ensure_ascii is false, the output will be unicode object. 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 (default: False), then out of range float values (nan, inf, -inf) will be serialized to their JavaScript equivalents (NaN, Infinity, -Infinity) instead of raising a ValueError. See ignore_nan for ECMA-262 compliant behavior. 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 string, then JSON array elements and object members will be pretty-printed with a newline followed by that string repeated for each level of nesting. ``None`` (the default) selects the most compact representation without any newlines. For backwards compatibility with versions of simplejson earlier than 2.1.0, an integer is also accepted and is converted to a string with that many spaces. 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``. If encoding is not None, then all input strings will be transformed into unicode using that encoding prior to JSON-encoding. The default is UTF-8. If use_decimal is true (default: ``True``), ``decimal.Decimal`` will be supported directly by the encoder. For the inverse, decode JSON with ``parse_float=decimal.Decimal``. If namedtuple_as_object is true (the default), objects with ``_asdict()`` methods will be encoded as JSON objects. If tuple_as_array is true (the default), tuple (and subclasses) will be encoded as JSON arrays. If *iterable_as_array* is true (default: ``False``), any object not in the above table that implements ``__iter__()`` will be encoded as a JSON array. If bigint_as_string is true (not the default), ints 2**53 and higher or lower than -2**53 will be encoded as strings. This is to avoid the rounding that happens in Javascript otherwise. If int_as_string_bitcount is a positive number (n), then int of size greater than or equal to 2**n or lower than or equal to -2**n will be encoded as strings. If specified, item_sort_key is a callable used to sort the items in each dictionary. This is useful if you want to sort items other than in alphabetical order by key. If for_json is true (not the default), objects with a ``for_json()`` method will use the return value of that method for encoding as JSON instead of the object. If *ignore_nan* is true (default: ``False``), then out of range :class:`float` values (``nan``, ``inf``, ``-inf``) will be serialized as ``null`` in compliance with the ECMA-262 specification. If true, this will override *allow_nan*. Nú ú,)ÚskipkeysÚ ensure_asciiÚcheck_circularÚ allow_nanÚ sort_keysÚ use_decimalÚnamedtuple_as_objectÚtuple_as_arrayÚiterable_as_arrayÚbigint_as_stringÚ item_sort_keyÚfor_jsonÚ ignore_nanÚint_as_string_bitcountr'rÚindentÚitem_separatorÚ key_separatorÚdefaultÚencoding)ÚselfrErFrGrHrIrSÚ separatorsrWrVrJrKrLrNrOrPrQrRrMs rÚ__init__zJSONEncoder.__init__ŽsÔ€ðr!ˆŒ Ø(ˆÔØ,ˆÔØ"ˆŒØ"ˆŒØ&ˆÔØ$8ˆÔ!Ø,ˆÔØ!2ˆÔØ 0ˆÔØ*ˆÔØ ˆŒ Ø$ˆŒØ&<ˆÔ#Ø Ð ¥j°½Ñ&FÔ&FРؘc‘\ˆF؈Œ Ø Ð !Ø6@Ñ 3ˆDÔ  Ô!3Ð!3Ø Ð Ø"%ˆDÔ Ø Ð Ø"ˆDŒLØ ˆŒ ˆ ˆ r&có:—td|jjz¦«‚)a$Implement 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) return JSONEncoder.default(self, o) z*Object of type %s is not JSON serializable)Ú TypeErrorÚ __class__Ú__name__)rXÚos rrVzJSONEncoder.defaults&€õ$ÐDØœ Ô,ñ-ñ.ô.ð .r&cóÀ—t|t¦«r|j}|�|dkst||¦«}t|t¦«r%|jrt |¦«St|¦«S| |¦«}t|ttf¦«st|¦«}|jrd  |¦«Sd  |¦«S)zÕReturn a JSON string representation of a Python data structure. >>> from simplejson import JSONEncoder >>> JSONEncoder().encode({"foo": ["bar", "baz"]}) '{"foo": ["bar", "baz"]}' Nr r) r'rrWrrrFrr5Ú iterencodeÚlistÚtupleÚjoin)rXr_Ú _encodingÚchunkss rÚencodezJSONEncoder.encodesÖ€õ �a�Ñ %Ô %ð ,Øœ ˆIØÐ%¨y¸GÒ/CÐ/Cݘa Ñ+Ô+�Ý �a�Ñ &Ô &ð ,ØÔ ð ,Ý.¨qÑ1Ô1Ð1å(¨Ñ+Ô+Ð+ð—’ Ñ#Ô#ˆÝ˜&¥4­ -Ñ0Ô0ð "ݘ&‘\”\ˆFØ Ô ð $Ø—7’7˜6‘?”?Ð "à—8’8˜FÑ#Ô#Ð #r&cóB—|jri}nd}|jrt}nt}|jdkr|j� ||jfd„}|j|jttt fd„}i}|j rdn|j }t�|j €xt||j ||j |j|j|j|j|j||j|j|j||j|j|j|jt.j|j¦«}nlt5||j ||j ||j|j|j|j|j|j|j||j|j|j|jt.j¬¦«} ||d¦«| ¦«S#| ¦«wxYw)zØEncode the given object and yield each string representation as available. For example:: for chunk in JSONEncoder().iterencode(bigobject): mysocket.write(chunk) Nr cób—t|t¦«rt||¦«}||¦«S©N)r'rr)r_Ú _orig_encoderres rÚ_encoderz(JSONEncoder.iterencode.._encoderEs3€Ý˜a¥Ñ-Ô-ð0Ý! ! YÑ/Ô/�AØ$�} QÑ'Ô'Ð'r&cóì—||krd}nD||krd}n;||krd}n2t|¦«tkrt|¦«}||¦«S|rd}n!|stdt|¦«z¦«‚|S)NÚNaNÚInfinityz -InfinityÚnullz2Out of range float values are not JSON compliant: )r*ÚfloatÚ ValueErrorÚrepr)r_rHrQÚ_reprÚ_infÚ_neginfÚtexts rÚfloatstrz(JSONEncoder.iterencode..floatstrJsž€ð �AŠvˆvØ��Ø�d’�Ø!��Ø�g’�Ø"��嘑7”7�eÒ#Ð#å˜a™œ�AØ�u˜Q‘x”x�àð Ø��Øð Ý ØHݘ‘G”GññôððˆKr&é5)ÚDecimalr)rGrFrr5rWrHrQÚ FLOAT_REPRrrNrRÚc_make_encoderrSrVrUrTrIrErJrKrLrOrPÚdecimalrzrMÚ_make_iterencodeÚclear)rXr_ÚmarkersrlrxÚkey_memorRÚ _iterencodes rrazJSONEncoder.iterencode2sÁ€ð Ô ð ØˆGˆGàˆGØ Ô ð )Ý.ˆHˆHå(ˆHØ Œ=˜GÒ #Ð #¨¬ Ð(AØ*2¸d¼mð (ð (ð (ð (ð #'¤.¸T¼_Ý ¥v½°wð ð ð ð ð6ˆàÔ'Ð HˆBˆB¨TÔ-Hð å Ð &¨4¬;Ð+>Ý(ؘœ x°´ØÔ" DÔ$7¸¼Ø” ˜tœ~¨x¸Ô9IØÔ)¨4Ô+>Ø&ØÔ" D¤M°4´=Ø”¥¤°$Ô2HñJôJˆKˆKõ+ؘœ x°´¸hØÔ" DÔ$7¸¼Ø” ˜tÔ/ØÔ)¨4Ô+>Ø&ØÔ" D¤M°4´=ØÔ&µ´ðAñAôAˆKð Ø�;˜q !Ñ$Ô$à �NŠNÑ Ô Ð Ð øˆH�NŠNÑ Ô Ð Ð øøøs Å( FÆF)FTTFFNNr NTTTFNFFNF) r^Ú __module__Ú __qualname__Ú__doc__rTrUrZrVrgra©r&rrArAnsŠ€€€€€ððð8€NØ€Mà48ØAFØIMØ8<Ø7<Ø@EØ@Eð p!ðp!ðp!ðp!ðd.ð.ð.ð*$ð$ð$ð:KðKðKðKðKr&rAcó(‡—eZdZdZd„Zˆfd„ZˆxZS)ÚJSONEncoderForHTMLa3An encoder that produces JSON safe to embed in HTML. To embed JSON content in, say, a script tag on a web page, the characters &, < and > should be escaped. They cannot be escaped with the usual entities (e.g. &) because they are not expanded within