Files
wg-backend-django/acer-env/lib/python3.10/site-packages/asgiref/__pycache__/compatibility.cpython-310.pyc

13 lines
1.4 KiB
Plaintext
Raw Normal View History

2022-11-30 15:58:16 +07:00
o
<00>Ԅc><00>@s,ddlZddlZdd<03>Zdd<05>Zdd<07>ZdS)<08>NcCsTt|dd<02>rdSt|dd<02>rdSt<01>|<00>rdSt|d<05>r$t<04>|j<06>r$dSt<04>|<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__)<07>getattr<74>inspect<63>isclass<73>hasattr<74>asyncio<69>iscoroutinefunctionr<00><01> application<6F>r <00>h/home/infidel/Sync/Project/ocp-wg-backend/acer-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 rrrrr r r r<00><module>s