https://t.me/RX1948
Server : nginx/1.24.0
System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/test/__pycache__/stdio_test_loseconn.cpython-312.pyc
�

Ϫ�f/���dZddlZddlmZmZddlmZddlmZm	Z	Gd�dej�Zedk(r�e	jejd	�j�ej eejd
d��ddlmZe�Zej(e�ej*�ej,ej.�yy)
z�
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_loseConnection} to
test that ITransport.loseConnection() works for process transports.
�N)�protocol�stdio)�ConnectionDone)�log�reflectc��eZdZdZd�Zd�Zy)�
LoseConnChildrc�8�|jj�y)N)�	transport�loseConnection)�selfs �B/usr/lib/python3/dist-packages/twisted/test/stdio_test_loseconn.py�connectionMadezLoseConnChild.connectionMades�����%�%�'�c���		|jt�t
j�y#t$r tjdd�d|_Y�=wxYw#t
j�wxYw)a
        Check that C{reason} is a L{Failure} wrapping a L{ConnectionDone}
        instance and stop the reactor.  If C{reason} is wrong for some reason,
        log something about that in C{self.errorLogFile} and make sure the
        process exits with a non-zero status.
        Nz,Problem with reason passed to connectionLost�)�trapr�
BaseExceptionr�err�exitCode�reactor�stop)r
�reasons  r�connectionLostzLoseConnChild.connectionLostsV��	�
"����N�+�

�L�L�N��	!�
"�����L�M� !��
�
"��
�L�L�N�s!�-�&A�A�A�A�A/N)�__name__�
__module__�__qualname__rrr�rrr	r	s���H�(�rr	�__main__r��wb)r)�__doc__�sys�twisted.internetrr�twisted.internet.errorr�twisted.pythonrr�Protocolr	r�namedAny�argv�install�startLogging�openr�protocolLoseConnChild�
StandardIO�run�exitrrrr�<module>r1s���
��,�1�'��H�%�%��.�z���G���S�X�X�a�[�!�)�)�+��C���T�#�(�(�1�+�t�,�-�(�)�O���E���*�+��G�K�K�M��C�H�H�
"�
+�
+�,�r

https://t.me/RX1948 - 2025