File manager - Edit - /usr/local/CyberCP/lib/python3.10/site-packages/asgiref/__pycache__/wsgi.cpython-310.pyc
Back
o �ha � @ 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/local/CyberCP/lib/python3.10/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>