HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/asyncio/__pycache__/__main__.cpython-310.pyc
o

�N�g3
�@sBddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZGdd�dej�Z
Gdd�dej�Zedkr�e�d	�e��Ze�e�d
eiZdD]	Ze�eee<qTe
ee�ZdadazddlZWn	eyvYnwe�Zd
e_e��	ze� �WdSe!y�tr�t�"�s�t�#�d
aYq�wdS)�N�)�futurescs$eZdZ�fdd�Zdd�Z�ZS)�AsyncIOInteractiveConsolecs*t��|�|jjjtjO_||_dS)N)�super�__init__�compile�compiler�flags�astZPyCF_ALLOW_TOP_LEVEL_AWAIT�loop)�self�localsr��	__class__��6/opt/saltstack/salt/lib/python3.10/asyncio/__main__.pyrs
z"AsyncIOInteractiveConsole.__init__csntj������fdd�}t�|�z���WSty�ty6tr/��	d�YdS��
�YdSw)Nc
s�dadat���j�}z|�}Wn8ty�ty1}zda��|�WYd}~dSd}~wtyH}z��|�WYd}~dSd}~wwt	�
|�sU��|�dSz�j�
|�at�t��WdSty|}z��|�WYd}~dSd}~ww)NFT)�repl_future�repl_future_interrupted�types�FunctionTyper
�
SystemExit�KeyboardInterruptZ
set_exception�
BaseException�inspectZiscoroutineZ
set_resultrZcreate_taskrZ
_chain_future)�func�coro�ex�exc��codeZfuturerrr�callbacks6

�
��

��z3AsyncIOInteractiveConsole.runcode.<locals>.callbackz
KeyboardInterrupt
)�
concurrentrZFuturer�call_soon_threadsafe�resultrrr�writeZ
showtraceback)rrr rrr�runcodes


�z!AsyncIOInteractiveConsole.runcode)�__name__�
__module__�__qualname__rr%�
__classcell__rrrrrsrc@seZdZdd�ZdS)�
REPLThreadcCstz*dtj�dtj�dttdd��d�}tj|dd�Wtjd	d
td�t	�
t	j�dStjd	d
td�t	�
t	j�w)Nz
asyncio REPL z on zy
Use "await" directly instead of "asyncio.run()".
Type "help", "copyright", "credits" or "license" for more information.
Zps1z>>> zimport asynciozexiting asyncio REPL...)�bannerZexitmsg�ignorez ^coroutine .* was never awaited$)�message�category)�sys�version�platform�getattr�consoleZinteract�warnings�filterwarnings�RuntimeWarningrr"�stop)rr+rrr�runFs*
������zREPLThread.runN)r&r'r(r8rrrrr*Dsr*�__main__zcpython.run_stdin�asyncio>�
__loader__r&�__builtins__�__package__�__spec__�__file__FT)$r
r:r�concurrent.futuresr!rr/�	threadingrr4�rZInteractiveConsoler�Threadr*r&�auditZnew_event_looprZset_event_loopZrepl_locals�keyr
r3rr�readline�ImportErrorZrepl_thread�daemon�startZrun_foreverrZdone�cancelrrrr�<module>sR6


�
���