%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/
Upload File :
Create Path :
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

Zerion Mini Shell 1.0