a i3 @sTddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl m Z Gdddej Z GdddejZedkrPed eZeed eiZd D]Zeeee<qe eeZdad az ddlZWneyYn0eZd e_ez e Wn6e!yFtr.callbackz KeyboardInterrupt ) concurrentrFuturer call_soon_threadsaferesultrrrwriteZ showtraceback)r r r"rrrruncodes      z!AsyncIOInteractiveConsole.runcode)__name__ __module__ __qualname__rr( __classcell__rrr rrs rc@seZdZddZdS) REPLThreadc CsvzRdtjdtjdttddd}tj|ddWtjd 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...)bannerZexitmsgignorez ^coroutine .* was never awaited$)messagecategory) sysversionplatformgetattrconsoleZinteractwarningsfilterwarningsRuntimeWarningr r%stop)r r.rrrrunFs* zREPLThread.runN)r)r*r+r;rrrrr-Dsr-__main__zcpython.run_stdinasyncio>r) __loader__ __builtins____spec__ __package____file__FT)$r r=r concurrent.futuresr#rr2 threadingrr7rZInteractiveConsolerThreadr-r)auditZnew_event_loopr Zset_event_loopZ repl_localskeyr r6rrreadline ImportErrorZ repl_threaddaemonstartZ run_foreverrdonecancelrrrrsH 6