HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/asgiref/__pycache__/compatibility.cpython-310.pyc
o

�6�a>�@s,ddlZddlZdd�Zdd�Zdd�ZdS)�NcCsTt|dd�rdSt|dd�rdSt�|�rdSt|d�r$t�|j�r$dSt�|�S)zY
    Tests to see if an application is a legacy-style (double-callable) application.
    �_asgi_single_callableF�_asgi_double_callableT�__call__)�getattr�inspect�isclass�hasattr�asyncio�iscoroutinefunctionr��application�r
�7/usr/lib/python3/dist-packages/asgiref/compatibility.py�is_double_callables

rcs�fdd�}|S)zS
    Transforms a double-callable ASGI application into a single-callable one.
    c�s��|�}|||�IdHS)Nr
)�scope�receive�send�instancerr
r�new_application s�z2double_to_single_callable.<locals>.new_applicationr
)rrr
rr�double_to_single_callablesrcCst|�rt|�}|S)z�
    Takes either a single- or double-callable application and always returns it
    in single-callable style. Use this to add backwards compatibility for ASGI
    2.0 applications to your server/test harness/etc.
    )rrrr
r
r�guarantee_single_callable'sr)r	rrrrr
r
r
r�<module>s