a XC?h3 ã@sTddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl m Z Gdd„dej ƒZ Gdd„dejƒZedk�rPe d ¡e ¡Ze e¡d eiZd D]Zeƒeee<qªe eeƒZdad az ddlZWneyîYn0eƒZd e_e ¡z e  ¡Wn6e!�yFt�r.callbackz KeyboardInterrupt ) Ú concurrentrZFuturer Úcall_soon_threadsafeÚresultrrrÚwriteZ showtraceback)r rrrrrÚruncodes      z!AsyncIOInteractiveConsole.runcode)Ú__name__Ú __module__Ú __qualname__rr#Ú __classcell__rrr rrs rc@seZdZdd„ZdS)Ú REPLThreadc CsvzRdtj›dtj›dttddƒ›d�}tj|dd�Wtjd d td �t   t j ¡ntjd d td �t   t j ¡0dS) 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ÚRuntimeWarningr r Ústop)r r)rrrÚrunFs* üÿþýûýzREPLThread.runN)r$r%r&r6rrrrr(Dsr(Ú__main__zcpython.run_stdinÚasyncio>Ú__spec__Ú __loader__Ú__file__r$Ú __builtins__Ú __package__FT)$r r8rZconcurrent.futuresrrr-Z threadingrr2ÚrZInteractiveConsolerZThreadr(r$ÚauditZnew_event_loopr Zset_event_loopZ repl_localsÚkeyr r1rrÚreadlineÚ ImportErrorZ repl_threadZdaemonÚstartZ run_foreverrZdoneZcancelrrrrÚsH 6