Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/flask/__pycache__/ctx.cpython-39.pyc
Ðазад
a p�hTA � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddl m Z dd l mZ dd lm Z ddlmZ e� ZG dd � d e�Zdd� Zdd� Zdd� Zdd� ZG dd� de�ZG dd� de�ZdS )z� flask.ctx ~~~~~~~~~ Implements the objects required to keep the context. :copyright: 2010 Pallets :license: BSD-3-Clause � N)�update_wrapper)� HTTPException� )�BROKEN_PYPY_CTXMGR_EXIT)�reraise)�_app_ctx_stack)�_request_ctx_stack)�appcontext_popped)�appcontext_pushedc @ sH e Zd ZdZddd�Zefdd�Zddd�Zd d � Zdd� Z d d� Z dS )�_AppCtxGlobalsa� A plain object. Used as a namespace for storing data during an application context. Creating an app context automatically creates this object, which is made available as the :data:`g` proxy. .. describe:: 'key' in g Check whether an attribute is present. .. versionadded:: 0.10 .. describe:: iter(g) Return an iterator over the attribute names. .. versionadded:: 0.10 Nc C s | j �||�S )z�Get an attribute by name, or a default value. Like :meth:`dict.get`. :param name: Name of attribute to get. :param default: Value to return if the attribute is not present. .. versionadded:: 0.10 )�__dict__�get��self�name�default� r �y/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/flask/ctx.pyr 0 s z_AppCtxGlobals.getc C s&