Your IP : 13.58.32.115
U
e5d � @ sB d Z ddlmZ ddlmZ ddlmZ dd�dd�Zd d
� ZdS ))�run� )�
coroutines)�events)�tasksN)�debugc C s� t �� d k rtd��t�| �s,td�| ���t �� }z*t �|� |d k rR|�
|� |�| �W �S zt
|� |�|�� � W 5 t �d � |� � X X d S )Nz8asyncio.run() cannot be called from a running event loopz"a coroutine was expected, got {!r})r Z_get_running_loop�RuntimeErrorr Ziscoroutine�
ValueError�formatZnew_event_loopZset_event_loop�close�_cancel_all_tasks�run_until_completeZshutdown_asyncgensZ set_debug)�mainr �loop� r �'/usr/lib64/python3.8/asyncio/runners.pyr s"