ó
    ×›‘h)  ã                   óè  • % S r SSKrSSKJr  SSKJrJr  SSKJrJ	r	J
r
  SSKJrJr  \" \5       " S S\R                  5      5       r\S	:X  a¥  \R"                  " \R$                  S
   5      R'                  5         \R(                  " \" \R$                  S   S5      5        \	\S'   SSKJr  \" 5       r\R2                  " \5        \R4                  " 5         \R6                  " \R8                  5        gg)zÊ
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_readConnectionLost} to
test that IHalfCloseableProtocol.readConnectionLost works for stdio transports.
é    N)Úimplementer)ÚprotocolÚstdio)ÚIHalfCloseableProtocolÚIReactorCoreÚ
ITransport)ÚlogÚreflectc                   ó\   • \ rS rSr% SrSr\\S'   SS jrSS jr	SS\
SS4S	 jjrSS
 jrSrg)ÚHalfCloseProtocolé   z¾
A protocol to hook up to stdio and observe its transport being
half-closed.  If all goes as expected, C{exitCode} will be set to C{0};
otherwise it will be set to C{1} to indicate failure.
NÚ	transportÚreturnc                 ó:   • U R                   R                  S5        g)z-
Signal the parent process that we're ready.
ó   xN)r   Úwrite©Úselfs    ÚkC:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/test/stdio_test_halfclose_buggy.pyÚconnectionMadeÚ HalfCloseProtocol.connectionMade    s   € ð 	�‰×Ñ˜TÕ"ó    c                 ó   • [        S5      e)z^
This is the desired event.  Once it has happened, stop the reactor so
the process will exit.
zsomething went wrong)Ú
ValueErrorr   s    r   ÚreadConnectionLostÚ$HalfCloseProtocol.readConnectionLost&   s   € ô
 Ð/Ó0Ð0r   Úreasonc                 ó<   • SU l         [        R                  " 5         g)zt
This may only be invoked after C{readConnectionLost}.  If it happens
otherwise, mark it as an error and shut down.
r   N)ÚexitCodeÚreactorÚstop)r   r   s     r   ÚconnectionLostÚ HalfCloseProtocol.connectionLost-   s   € ð
 ˆŒÜ�Š�r   c                 ó   • g ©N© r   s    r   ÚwriteConnectionLostÚ%HalfCloseProtocol.writeConnectionLost5   s   € àr   )r   )r   Nr%   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Ú__annotations__r   r   Úobjectr"   r'   Ú__static_attributes__r&   r   r   r   r      s6   ‡ ñð €HØÓô#ô1ñ Vð °tõ ÷r   r   Ú__main__é   é   Úwr    )r    )r-   ÚsysÚzope.interfacer   Útwisted.internetr   r   Útwisted.internet.interfacesr   r   r   Útwisted.pythonr	   r
   ÚProtocolr   r)   ÚnamedAnyÚargvÚinstallÚstartLoggingÚopenr.   r    ÚhalfCloseProtocolÚ
StandardIOÚrunÚexitr   r&   r   r   Ú<module>rD      sÎ   ðò
ó å &ç ,ß XÑ Xß 'ñ Ð#Ó$ô!˜×)Ñ)ó !ó %ð!ðH ˆzÓØ×Ò�S—X‘X˜a‘[Ó!×)Ñ)Ô+Ø×Ò‘T˜#Ÿ(™( 1™+ sÓ+Ô,ØÓÝ(á)Ó+ÐØ	×ÒÐ&Ô'Ø‡K‚K„MØ‡H‚HÐ×'Ñ'Õ(ð r   