| Server IP : 85.155.190.233 / Your IP : 216.73.216.103 Web Server : nginx/1.24.0 System : Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : wp-moonbloom ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
�
oj� � � � d Z ddlZddlmZmZ ddlmZmZ G d� dej � Z e
dk( r\ ej ej d � j � dd lmZ ej e � � ej � yy)
z�
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_producer} to test
that process transports implement IProducer properly.
� N)�protocol�stdio)�log�reflectc �, � e Zd ZdZdZd� Zd� Zd� Zd� Zy)�
ProducerChildF� c �v � t j d� t j dt j � y )Nz*****OVER*****� )r �msg�reactor� callLater�stop)�self�reasons �B/usr/lib/python3/dist-packages/twisted/test/stdio_test_producer.py�connectionLostzProducerChild.connectionLost s# � ���� �!����!�W�\�\�*r c � � | xj |z
c_ | j rSt j t j
� t j d� | j j � y | j j |� | j j d� r| j j � y | j � y )Nz$dataReceived while transport paused!s
0
)�buf�_pausedr �startLogging�sys�stderrr � transport�loseConnection�write�endswith�pause)r �datas r �dataReceivedzProducerChild.dataReceived s� � ����D����<�<����S�Z�Z�(��G�G�:�;��N�N�)�)�+��N�N� � ��&��x�x� � ��*����-�-�/��
�
�r c � � d| _ | j j � t j d| j
� y )NTg{�G�z�?)r r �pauseProducingr
r �unpause�r s r r zProducerChild.pause'