K indZddlZddlmZddlmZddlmZmZddl m Z ddl Z d dZ e e jd r'e jjed edefd Zyy) z0Bridges between the Twisted package and Tornado.N)Deferred)failure)Futurefuture_set_exc_info)genreturncddlm}|y)aInstall ``AsyncioSelectorReactor`` as the default Twisted reactor. .. deprecated:: 5.1 This function is provided for backwards compatibility; code that does not require compatibility with older versions of Tornado should use ``twisted.internet.asyncioreactor.install()`` directly. .. versionchanged:: 6.0.3 In Tornado 5.x and before, this function installed a reactor based on the Tornado ``IOLoop``. When that reactor implementation was removed in Tornado 6.0.0, this function was removed as well. It was restored in Tornado 6.0.3 using the ``asyncio`` reactor instead. rinstallN)twisted.internet.asyncioreactorr r s ^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/tornado/platform/twisted.pyr r s &8 Iregisterdctdtjddffd }|jj|S)Nrrc |jtd#ttjYyxYw)Nzerrback called without error)raiseException Exceptionrsysexc_info)rfs r errbackz_..errback7s9 7&&&( >?? 7#As||~6s  A)rrFailure addCallbacks set_result)rrrs @r _r3s: H 7W__ 7 7 q||W-r)rN)__doc__rtwisted.internet.deferrtwisted.pythonrtornado.concurrentrrtornadortypingr hasattrconvert_yieldedrrrr r&si7 +": 0 3   +!!(+ X & , ,r