Files
wg-backend-django/dell-env/lib/python3.11/site-packages/asgiref/__pycache__/compatibility.cpython-311.pyc

12 lines
2.0 KiB
Plaintext
Raw Normal View History

2023-10-30 14:40:43 +07:00
<EFBFBD>
<06>]d><00><00>(<00>ddlZddlZd<02>Zd<03>Zd<04>ZdS)<05>Nc<00><><00>t|dd<02><00>rdSt|dd<02><00>rdStj|<00><00>rdSt|d<05><00>rt j|j<00><00>rdSt j|<00><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> applications <20>n/home/infidel/Sync/TIP/WireGuard/ocp-wg-backend/dell-env/lib/python3.11/site-packages/asgiref/compatibility.py<70>is_double_callablers<><00><00>
<0F>{<7B>3<>U<EFBFBD>;<3B>;<3B><15><14>u<EFBFBD><0E>{<7B>3<>U<EFBFBD>;<3B>;<3B><14><13>t<EFBFBD><0E><EFBFBD>{<7B>#<23>#<23><14><13>t<EFBFBD><0E>{<7B>J<EFBFBD>'<27>'<27><19> <13> &<26>{<7B>';<3B> <<3C> <<3C> <19><18>5<EFBFBD><16>*<2A>;<3B>7<>7<> 7<>7<>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><00>}|||<02><00><00>d{V<00><03>S)N<>)<05>scope<70>receive<76>send<6E>instancers <20>r<00>new_applicationz2double_to_single_callable.<locals>.new_application s:<00><><00><00><00><1E>;<3B>u<EFBFBD>%<25>%<25><08><1D>X<EFBFBD>g<EFBFBD>t<EFBFBD>,<2C>,<2C>,<2C>,<2C>,<2C>,<2C>,<2C>,<2C>,rr)rrs` r<00>double_to_single_callablers$<00><><00>
-<2D>-<2D>-<2D>-<2D>-<2D> <1B>rc<00>B<00>t|<00><00>rt|<00><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>&<26>=<3D>/<2F> <0B><<3C><<3C> <0B> <16>r)r rrrrrrr<00><module>rsN<00><01><0E><0E><0E><0E><0E><0E><0E><0E>8<>8<>8<>, <1B> <1B> <1B><17><17><17><17>r