Format: application/x-python-code
1 o
2
3 -ha � @ sH d dl mZ d dlmZ d dlmZmZ G dd� d�ZG dd� d�ZdS ) � )�BytesIO)�SpooledTemporaryFile)�AsyncToSync�
4 sync_to_asyncc @ s e Zd ZdZdd� Zdd� ZdS )�
5 WsgiToAsgizG
6 Wraps a WSGI application to make it into an ASGI application.
7 c C s
8 || _ d S �N)�wsgi_application��selfr � r �BC:\Users\shubh\Videos\agent\nova\Lib\site-packages\asgiref/wsgi.py�__init__ s
9 zWsgiToAsgi.__init__c � s �t | j�|||�I dH dS )z�
10 ASGI application instantiation point.
11 We return a new WsgiToAsgiInstance here with the WSGI app
12 and the scope, ready to respond when it is __call__ed.
13 N)�WsgiToAsgiInstancer )r
14 �scope�receive�sendr r r �__call__ s �zWsgiToAsgi.__call__N)�__name__�
15 __module__�__qualname__�__doc__r
16 r r r r r r s r c @ s>