ϪfdZddlZddlZejj ej dj ejdzZedk7rHejjdejj ej ddedzejjdejddl m Z ddl mZddlmZej"ej$dd l mZmZmZe ej,Gd d ej.Zej2eej4y) z6A process that reads from stdin and out using Twisted.NTwisted) implementer) interfaces)log)protocolreactorstdioc*eZdZdZdZdZdZdZy)Echoctdy)Nzconnection madeprintselfs >/usr/lib/python3/dist-packages/twisted/test/process_twisted.pyconnectionMadezEcho.connectionMades   c:|jj|y)N) transportwrite)rdatas r dataReceivedzEcho.dataReceived!s T"rcNtd|jjy)NreadConnectionLost)rrloseConnectionrs rrzEcho.readConnectionLost$s "# %%'rctdy)NwriteConnectionLostrrs rrzEcho.writeConnectionLost(s  #$rcDtd|tjy)NconnectionLost)rr stop)rreasons rr!zEcho.connectionLost+s ' rN)__name__ __module__ __qualname__rrrrr!rrr r s!#(%rr )__doc__ossyspathabspathargvfindsepposinsertcurdirzope.interfacertwisted.internetrtwisted.pythonr startLoggingstderrr r r IHalfCloseableProtocolProtocolr StandardIOrunr'rrr<s<  ggoochhqk"''(:;"9HHOOArwwsxx{3IcAg>?299''65 Z . ./8  0&  r