%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/stdio_test_producer.cpython-312.pyc |
� Ϫ�f� � � � 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'