| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/flask/json/__pycache__/ |
Upload File : |
�
+�b�) � �� � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dl m
Z
d dlmZ ddl
mZ ej rddlmZ ddlmZ G d � d
� � Zdd�Z G d� de� � ZdS )� )�annotationsN)�date)� http_date� )�request)�Flask)�Responsec �J � e Zd ZdZdd�Zdd�Zdd�Zdd�Zdd�Zd d�Z d!d�Z
dS )"�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
�appr �return�Nonec �8 � t j |� � | _ d S )N)�weakref�proxy�_app)�selfr s �5/usr/lib/python3/dist-packages/flask/json/provider.py�__init__zJSONProvider.__init__'