U
    
W[›  ã                   @   sŠ   d Z ddlmZmZ ddlZddlmZmZ ddlm	Z	 G dd„ dej
ƒZedkr†e	 ejd	 ¡ ¡  dd
lmZ e eƒ ¡ e ¡  dS )z¨
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_write} to test that
ITransport.write() works for process transports.
é    )Úabsolute_importÚdivisionN)ÚstdioÚprotocol)Úreflectc                   @   s   e Zd Zdd„ Zdd„ ZdS )Ú
WriteChildc                 C   s2   | j  d¡ | j  d¡ | j  d¡ | j  ¡  d S )Nó   oó   kó   !)Z	transportÚwriteZloseConnection)Úself© r   ú?/usr/lib/python3/dist-packages/twisted/test/stdio_test_write.pyÚconnectionMade   s    zWriteChild.connectionMadec                 C   s   t  ¡  d S )N)ÚreactorÚstop)r   Úreasonr   r   r   ÚconnectionLost   s    zWriteChild.connectionLostN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      s   r   Ú__main__é   )r   )Ú__doc__Z
__future__r   r   ÚsysZtwisted.internetr   r   Ztwisted.pythonr   ZProtocolr   r   ZnamedAnyÚargvÚinstallr   Z
StandardIOÚrunr   r   r   r   Ú<module>   s   