文件操作 - provider.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/flask/json/__pycache__/provider.cpython-311.pyc
编辑文件内容
� +�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__'