
    ^hn                         S r SSKrSSKJr  SSKJr  SSKJrJr  SSK	J
r
  SSKrSS jr\" \
R                  S	5      (       a(  \
R                  R                  \5      S
\S\4S j5       rgg)z0Bridges between the Twisted package and Tornado.    N)Deferred)failure)Futurefuture_set_exc_info)genreturnc                      SSK Jn   U " 5         g)a[  Install ``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.

r   installN)twisted.internet.asyncioreactorr   r
   s    R/home/james-whalen/.local/lib/python3.13/site-packages/tornado/platform/twisted.pyr   r      s    & 8I    registerdc                    ^ [        5       mS[        R                  SS 4U4S jjnU R                  TR                  U5        T$ )Nr   r   c                    >  U R                   " 5         [        S5      e!   [        T[        R                  " 5       5         g = f)Nzerrback called without error)raiseException	Exceptionr   sysexc_info)r   fs    r   errback_.<locals>.errback7   s7    7&&( >??7#As||~6s	    !A)r   r   FailureaddCallbacks
set_result)r   r   r   s     @r   _r   3   s:    H	7W__ 	7 	7 	
q||W-r   )r   N)__doc__r   twisted.internet.deferr   twisted.pythonr   tornado.concurrentr   r   tornador   typingr   hasattrconvert_yieldedr   r    r   r   <module>r'      sl    7 
 + " :  0 3
++!!(+X &  , ,r   