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_lastwrite.cpython-312.pyc
�

Ϫ�f�����dZddlZddlmZddlmZddlmZGd�de�Zd�Z	e
d	k(r@eejd
�j�ddl
mZe	eejd�yy)
z�
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_lastWriteReceived}
to test that L{os.write} can be reliably used after
L{twisted.internet.stdio.StandardIO} has finished.
�N)�Protocol)�
StandardIO)�namedAnyc��eZdZd�Zd�Zd�Zy)�LastWriteChildc� �||_||_y�N)�reactor�magicString)�selfr
rs   �C/usr/lib/python3/dist-packages/twisted/test/stdio_test_lastwrite.py�__init__zLastWriteChild.__init__s�����&���c��|jj|j�|jj�yr	)�	transport�writer�loseConnection)rs r
�connectionMadezLastWriteChild.connectionMades*�������T�-�-�.����%�%�'rc�8�|jj�yr	)r
�stop)r�reasons  r
�connectionLostzLastWriteChild.connectionLosts�������rN)�__name__�
__module__�__qualname__rrr�rr
rrs��'�(�rrc�r�t||jd��}t|�|j�y)N�ascii)r�encoder�run)r
r�ps   r
�mainr"!s+���w�� 2� 2�7� ;�<�A��q�M��G�K�K�Mr�__main__�)r
�)�__doc__�sys�twisted.internet.protocolr�twisted.internet.stdior�twisted.python.reflectrrr"r�argv�install�twisted.internetr
rrr
�<module>r.sf��
��.�-�+�
�X�
���z���S�X�X�a�[��!�!�#�(���#�(�(�1�+��	r

https://t.me/RX1948 - 2025