| Server IP : 167.99.254.82 / Your IP : 216.73.216.188 Web Server : Apache System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE 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 ddlZddlmZ ddlmZmZ ddlmZ ddl m
Z
mZ ee�G dd� dej��Z
ed krbe�ejd
��� e
�eejd d�� dd
lmZ e
� Ze�e� e�� e�ej� dS dS )z�
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_readConnectionLost}
to test that IHalfCloseableProtocol.readConnectionLost works for process
transports.
� N)�implementer)�protocol�stdio)�IHalfCloseableProtocol)�log�reflectc @ s4 e Zd ZdZdZdd� Zdd� Zdd� Zd d
� ZdS )�HalfCloseProtocolz�
A protocol to hook up to stdio and observe its transport being
half-closed. If all goes as expected, C{exitCode} will be set to C{0};
otherwise it will be set to C{1} to indicate failure.
Nc C s | j �d� dS )z=
Signal the parent process that we're ready.
� xN)� transport�write��self� r �C/usr/lib/python3/dist-packages/twisted/test/stdio_test_halfclose.py�connectionMade s z HalfCloseProtocol.connectionMadec C s d| _ t�� dS )zv
This is the desired event. Once it has happened, stop the reactor so
the process will exit.
r N)�exitCode�reactor�stopr r r r �readConnectionLost&