From: Guido van Rossum Date: Wed, 29 Jan 2014 22:28:15 +0000 (-0800) Subject: asyncio: Pass through pause/resume from subprocess pipe proto to subprocess proto... X-Git-Tag: v3.4.0rc1~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e9a446ebeced921a5da3d9647e96cdd767504a9;p=thirdparty%2FPython%2Fcpython.git asyncio: Pass through pause/resume from subprocess pipe proto to subprocess proto. Also kill dummy eof_received(). --- diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py index cc4f8cb7592d..b7cdbceffad7 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,