Files
old-saburly-wagtail-web/env/lib/python3.10/site-packages/asgiref/__pycache__/compatibility.cpython-310.pyc

16 lines
1.4 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>fF<00>@s0ddlZddlmZdd<05>Zdd<07>Zdd <09>ZdS)
<EFBFBD>N<>)<01>iscoroutinefunctioncCsPt|dd<02>rdSt|dd<02>rdSt<01>|<00>rdSt|d<05>r#t|j<05>r#dSt|<00> S)zY
Tests to see if an application is a legacy-style (double-callable) application.
<20>_asgi_single_callableF<65>_asgi_double_callableT<65>__call__)<06>getattr<74>inspect<63>isclass<73>hasattrrr<00><01> application<6F>r <00>W/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/asgiref/compatibility.py<70>is_double_callables  



rcs<00>fdd<02>}|S)zS
Transforms a double-callable ASGI application into a single-callable one.
c<00>s<00><01>|<00>}|||<02>IdHS)Nr )<04>scope<70>receive<76>send<6E>instancer r r<00>new_application!s<02>z2double_to_single_callable.<locals>.new_applicationr )r rr r r<00>double_to_single_callables rcCst|<00>rt|<00>}|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.
)rrr r r r<00>guarantee_single_callable(sr)r<00>syncrrrrr r r r<00><module>s