ó måOc@s»dZddlZddlZddlmZddlmZddlmZdefd„ƒYZ d„Z e d kr·eej d ƒj ƒdd lmZe eej d ƒndS( sà Main program for the child process run by L{twisted.test.test_stdio.StandardInputOutputTestCase.test_lastWriteReceived} to test that L{os.write} can be reliably used after L{twisted.internet.stdio.StandardIO} has finished. iÿÿÿÿN(tProtocol(t StandardIO(tnamedAnytLastWriteChildcBs#eZd„Zd„Zd„ZRS(cCs||_||_dS(N(treactort magicString(tselfRR((sE/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_lastwrite.pyt__init__s cCs$|jj|jƒ|jjƒdS(N(t transporttwriteRtloseConnection(R((sE/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_lastwrite.pytconnectionMadescCs|jjƒdS(N(Rtstop(Rtreason((sE/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_lastwrite.pytconnectionLosts(t__name__t __module__RR R(((sE/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_lastwrite.pyRs  cCs't||ƒ}t|ƒ|jƒdS(N(RRtrun(RRtp((sE/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_lastwrite.pytmain#s t__main__i(Ri(t__doc__tsyst _preamblettwisted.internet.protocolRttwisted.internet.stdioRttwisted.python.reflectRRRRtargvtinstallttwisted.internetR(((sE/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_lastwrite.pyt s