Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/test/__pycache__/stdio_test_loseconn.cpython-39.pyc
Ðазад
a k�h/ � @ s� d Z ddlZddlmZmZ ddlmZ ddlmZm Z G dd� dej �Zedkr�e � ejd ��� e�eejd d�� ddlmZ e� Ze�e� e�� e�ej� dS ) 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 @ s e Zd ZdZdd� Zdd� ZdS )� LoseConnChildr c C s | j �� d S )N)� transportZloseConnection)�self� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/test/stdio_test_loseconn.py�connectionMade s zLoseConnChild.connectionMadec C sP z@z|� t� W n$ ty4 t�dd� d| _Y n0 W t�� n t�� 0 dS )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� )Ztrapr � BaseExceptionr �err�exitCode�reactor�stop)r �reasonr r r �connectionLost s zLoseConnChild.connectionLostN)�__name__� __module__�__qualname__r r r r r r r r s r �__main__r � �wb)r )�__doc__�sysZtwisted.internetr r Ztwisted.internet.errorr Ztwisted.pythonr r �Protocolr r ZnamedAny�argv�installZstartLogging�openr ZprotocolLoseConnChildZ StandardIO�run�exitr r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка