OwlCyberSecurity - MANAGER
Edit File: wsgi.cpython-39.pyc
a ���e� � @ sH d dl mZ d dlmZ d dlmZmZ G dd� d�ZG dd� d�ZdS ) � )�BytesIO)�SpooledTemporaryFile)�AsyncToSync� sync_to_asyncc @ s e Zd ZdZdd� Zdd� ZdS )� WsgiToAsgizG Wraps a WSGI application to make it into an ASGI application. c C s || _ d S )N)�wsgi_application��selfr � r �M/home/gouroczh/virtualenv/pat/3.9/lib/python3.9/site-packages/asgiref/wsgi.py�__init__ s zWsgiToAsgi.__init__c � s t | j�|||�I dH dS )z� ASGI application instantiation point. We return a new WsgiToAsgiInstance here with the WSGI app and the scope, ready to respond when it is __call__ed. N)�WsgiToAsgiInstancer )r �scope�receive�sendr r r �__call__ s zWsgiToAsgi.__call__N)�__name__� __module__�__qualname__�__doc__r r r r r r r s r c @ s>