Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/asgiref/__pycache__/compatibility.cpython-312.pyc

14 lines
1.7 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> iF<00><00>*<00>ddlZddlmZd<04>Zd<05>Zd<06>Zy)<07>N<>)<01>iscoroutinefunctionc<00><><00>t|dd<02>ryt|dd<02>rytj|<00>ryt|d<05>rt |j
<00>ryt |<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> applications <20>DE:\Project\pygoedge\.venv\Lib\site-packages\asgiref/compatibility.py<70>is_double_callablers^<00><00>
<0F>{<7B>3<>U<EFBFBD>;<3B><14><0E>{<7B>3<>U<EFBFBD>;<3B><13><0E><EFBFBD><EFBFBD>{<7B>#<23><13><0E>{<7B>J<EFBFBD>'<27> <1F>{<7B>3<>3<> 4<><18>"<22>;<3B>/<2F> /<2F>/<2F>c<00><00><00><00>fd<01>}|S)zS
Transforms a double-callable ASGI application into a single-callable one.
c<00><00>B<00>K<00><00>|<00>}|||<02><00>d{<00><02><03>S7<00><04>w)N<>)<05>scope<70>receive<76>send<6E>instancers <20>r<00>new_applicationz2double_to_single_callable.<locals>.new_application!s$<00><><00><><00><1E>u<EFBFBD>%<25><08><1D>g<EFBFBD>t<EFBFBD>,<2C>,<2C>,<2C>,<2C>s <00><01><04>r)rrs` r<00>double_to_single_callablers<00><><00>
-<2D> <1B>rc<00>2<00>t|<00>r t|<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 s r<00>guarantee_single_callabler(s<00><00> <1A>+<2B>&<26>/<2F> <0B><<3C> <0B> <16>r)r
<00>syncrrrrrrr<00><module>rs<00><01><0E>%<25>0<>, <1B>r