File: //usr/lib/python3/dist-packages/asgiref/__pycache__/wsgi.cpython-310.pyc
o
�6�a� � @ 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 �./usr/lib/python3/dist-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>