From 1e9a446ebeced921a5da3d9647e96cdd767504a9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 29 Jan 2014 14:28:15 -0800 Subject: [PATCH] asyncio: Pass through pause/resume from subprocess pipe proto to subprocess proto. Also kill dummy eof_received(). --- Lib/asyncio/base_subprocess.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py index cc4f8cb7592..b7cdbceffad 100644 --- a/Lib/asyncio/base_subprocess.py +++ b/Lib/asyncio/base_subprocess.py @@ -150,8 +150,11 @@ class WriteSubprocessPipeProto(protocols.BaseProtocol): self.disconnected = True self.proc._pipe_connection_lost(self.fd, exc) - def eof_received(self): - pass + def pause_writing(self): + self.proc._protocol.pause_writing() + + def resume_writing(self): + self.proc._protocol.resume_writing() class ReadSubprocessPipeProto(WriteSubprocessPipeProto,