def registerProducer(self, producer, streaming):
        if 0 in self.pipes:
            self.pipes[0].registerProducer(producer, streaming)
        else:
            producer.stopProducing()
Call this to register producer for standard input.
dataset/ETHPy150Open twisted/twisted/twisted/internet/process.py/Process.registerProducer