Format: application/x-python-code
1 o
2
3 D'h� � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dl m
4 Z
5 d dlmZ ej
6 r9d dlmZ ddlmZ G dd � d �Zdd
7 d�ZG dd� de�ZdS )� )�annotationsN)�date)� http_date)�Response� )�Appc @ sV e Zd ZdZd"dd�Zd#dd
8 �Zd$dd�Zd%dd�Zd&dd�Zd'dd�Z d(dd �Z
9 d!S ))�JSONProvidera� A standard set of JSON operations for an application. Subclasses
10 of this can be used to customize JSON behavior or use different
11 JSON libraries.
12
13 To implement a provider for a specific library, subclass this base
14 class and implement at least :meth:`dumps` and :meth:`loads`. All
15 other methods have default implementations.
16
17 To use a different provider, either subclass ``Flask`` and set
18 :attr:`~flask.Flask.json_provider_class` to a provider class, or set
19 :attr:`app.json <flask.Flask.json>` to an instance of the class.
20
21 :param app: An application instance. This will be stored as a
22 :class:`weakref.proxy` on the :attr:`_app` attribute.
23
24 .. versionadded:: 2.2
25 �appr �return�Nonec C s t �|�| _d S )N)�weakref�proxy�_app)�selfr � r �IC:\Users\shubh\Videos\agent\nova\Lib\site-packages\flask/json/provider.py�__init__&