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 ddlmZmZ G dd� dej�Z e dkr?e�ejd �� � dd lmZ e�e � � e�� dS dS ) z� Main program for the child process run by L{twisted.test.test_stdio.StandardInputOutputTests.test_producer} to test that process transports implement IProducer properly. � N)�protocol�stdio)�log�reflectc @ s4 e Zd ZdZdZdd� Zdd� Zdd� Zd d � ZdS )� ProducerChildF� c C s t �d� t�dtj� d S )Nz*****OVER*****� )r �msg�reactor� callLater�stop)�self�reason� r �B/usr/lib/python3/dist-packages/twisted/test/stdio_test_producer.py�connectionLost s zProducerChild.connectionLostc C sj | j |7 _ | jrt�tj� t�d� | j�� d S | j� |� | j � d�r/| j�� d S | �� d S )Nz$dataReceived while transport paused!s 0 )�buf�_pausedr �startLogging�sys�stderrr � transport�loseConnection�write�endswith�pause)r �datar r r �dataReceived s zProducerChild.dataReceivedc C s"