Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
o �b� � @ s� d Z ddlZddlmZmZ ddlmZ ddlmZm Z dd� Z G dd � d ej�Ze d krMe �ejd ��� ddlmZ e�eejd �� e�� dS dS )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�reflectc C s t �tj� t �| � d S �N)r �startLogging�sys�stderr�err)r � r �B/usr/lib/python3/dist-packages/twisted/test/stdio_test_consumer.py�failed s r c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )� ConsumerChildc C s || _ d S r )�junkPath)�selfr r r r �__init__ s zConsumerChild.__init__c s: t �� �t� jd�� j�}|�t� |�� fdd�� d S )N�rbc s � j �� S r )� transport�loseConnection)�ign�r r r �<lambda>! s z.ConsumerChild.connectionMade.<locals>.<lambda>) r � FileSender�beginFileTransfer�openr r � addErrbackr �addCallback)r �dr r r �connectionMade s � zConsumerChild.connectionMadec C s t �� d S r )�reactor�stop)r �reasonr r r �connectionLost# s zConsumerChild.connectionLostN)�__name__� __module__�__qualname__r r r# r r r r r s r �__main__� )r � )�__doc__r �twisted.internetr r �twisted.protocolsr �twisted.pythonr r r �Protocolr r$ �namedAny�argv�installr � StandardIO�runr r r r �<module> s �