Ë
    oj/  ã                   ó°  — d Z ddlZddlmZmZ ddlmZ ddlmZm	Z	  G d„ dej                  «      Zedk(  r  e	j                  ej                  d	   «      j                  «         ej                    eej                  d
   d«      «       ddlmZ  e«       Z ej(                  e«        ej*                  «         ej,                  ej.                  «       yy)zº
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_loseConnection} to
test that ITransport.loseConnection() works for process transports.
é    N)ÚprotocolÚstdio)ÚConnectionDone)ÚlogÚreflectc                   ó   — e Zd ZdZd„ Zd„ Zy)ÚLoseConnChildr   c                 ó8   — | j                   j                  «        y )N)Ú	transportÚloseConnection)Úselfs    úB/usr/lib/python3/dist-packages/twisted/test/stdio_test_loseconn.pyÚconnectionMadezLoseConnChild.connectionMade   s   € Ø�‰×%Ñ%Õ'ó    c                 óä   — 	 	 |j                  t        «       t        j                  «        y# t        $ r  t        j                  dd«       d| _        Y Œ=w xY w# t        j                  «        w xY w)a  
        Check that C{reason} is a L{Failure} wrapping a L{ConnectionDone}
        instance and stop the reactor.  If C{reason} is wrong for some reason,
        log something about that in C{self.errorLogFile} and make sure the
        process exits with a non-zero status.
        Nz,Problem with reason passed to connectionLosté   )Útrapr   ÚBaseExceptionr   ÚerrÚexitCodeÚreactorÚstop)r   Úreasons     r   ÚconnectionLostzLoseConnChild.connectionLost   sV   € ð	ð"Ø—‘œNÔ+ô
 �L‰L�Nøô	 !ò "Ü—‘˜ÐLÔMØ !�–ð"ûô �L‰L�Nús!   ƒ- ­&AÁA ÁAÁA ÁA/N)Ú__name__Ú
__module__Ú__qualname__r   r   r   © r   r   r	   r	      s   „ Ø€Hò(ór   r	   Ú__main__r   é   Úwb)r   )Ú__doc__ÚsysÚtwisted.internetr   r   Útwisted.internet.errorr   Útwisted.pythonr   r   ÚProtocolr	   r   ÚnamedAnyÚargvÚinstallÚstartLoggingÚopenr   ÚprotocolLoseConnChildÚ
StandardIOÚrunÚexitr   r   r   r   ú<module>r1      sµ   ðñ
ó ç ,Ý 1ß 'ô�H×%Ñ%ô ð. ˆzÒØ€G×Ñ�S—X‘X˜a‘[Ó!×)Ñ)Ô+Ø€C×Ñ‘T˜#Ÿ(™( 1™+ tÓ,Ô-Ý(á)›OÐØ€E×ÑÐ*Ô+Ø€G‡K�K„MØ€C‡H�HÐ"×+Ñ+Õ,ð r   