HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/test/__pycache__/stdio_test_consumer.cpython-310.pyc
o

�b��@s�dZddlZddlmZmZddlmZddlmZm	Z	dd�Z
Gdd	�d	ej�Ze
d
krMe	�ejd���ddlmZe�eejd
��e��dSdS)z�
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_consumer} to test
that process transports implement IConsumer properly.
�N)�protocol�stdio)�basic)�log�reflectcCst�tj�t�|�dS�N)r�startLogging�sys�stderr�err)r�r�B/usr/lib/python3/dist-packages/twisted/test/stdio_test_consumer.py�failedsrc@s$eZdZdd�Zdd�Zdd�ZdS)�
ConsumerChildcCs
||_dSr)�junkPath)�selfrrrr
�__init__s
zConsumerChild.__init__cs:t���t�jd��j�}|�t�|��fdd��dS)N�rbcs
�j��Sr)�	transport�loseConnection)�ign�rrr
�<lambda>!s
z.ConsumerChild.connectionMade.<locals>.<lambda>)	r�
FileSender�beginFileTransfer�openrr�
addErrbackr�addCallback)r�drrr
�connectionMades
�
zConsumerChild.connectionMadecCst��dSr)�reactor�stop)r�reasonrrr
�connectionLost#szConsumerChild.connectionLostN)�__name__�
__module__�__qualname__rrr#rrrr
rsr�__main__�)r �)�__doc__r	�twisted.internetrr�twisted.protocolsr�twisted.pythonrrr�Protocolrr$�namedAny�argv�installr �
StandardIO�runrrrr
�<module>s�