HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux mail.btech-izolacje.pl 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
User: pewna6876 (1017)
PHP: 8.2.28
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�