summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2014-01-29 22:28:15 (GMT)
committerGuido van Rossum <guido@python.org>2014-01-29 22:28:15 (GMT)
commit1e9a446ebeced921a5da3d9647e96cdd767504a9 (patch)
tree631a719c015290b16239be876a7050909e354512
parent4d62d0b353dbc02a303e797673a41879a255c1fc (diff)
downloadcpython-1e9a446ebeced921a5da3d9647e96cdd767504a9.zip
cpython-1e9a446ebeced921a5da3d9647e96cdd767504a9.tar.gz
cpython-1e9a446ebeced921a5da3d9647e96cdd767504a9.tar.bz2
asyncio: Pass through pause/resume from subprocess pipe proto to subprocess proto. Also kill dummy eof_received().
-rw-r--r--Lib/asyncio/base_subprocess.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py
index cc4f8cb..b7cdbce 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,