https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/utils/__pycache__/asyncio.cpython-310.pyc
o

3�a$�@sNddlZddlZddlZddlmZddlmZerejZnejZdd�Z	dS)�N)�SynchronousOnlyOperation)�PY37cs(�fdd�}t��r�}d�||�S|S)z�
    Decorator to mark functions as async-unsafe. Someone trying to access
    the function while in an async context will get an error message.
    cst�����fdd��}|S)NcsLtj�d�szt�}Wn	tyYnwts|��rt����|i|��S)N�DJANGO_ALLOW_ASYNC_UNSAFE)�os�environ�get�get_running_loop�RuntimeErrorr�
is_runningr)�args�kwargs�
event_loop)�func�message��6/usr/lib/python3/dist-packages/django/utils/asyncio.py�inners
�z.async_unsafe.<locals>.decorator.<locals>.inner)�	functools�wraps)rr�r)rr�	decoratorszasync_unsafe.<locals>.decoratorzKYou cannot call this from an async context - use a thread or sync_to_async.)�callable)rrrrrr�async_unsafesr)
�asynciorr�django.core.exceptionsr�django.utils.versionrr�get_event_looprrrrr�<module>s

https://t.me/RX1948 - 2025