[Python-checkins] cpython: asyncio: Pass through pause/resume from subprocess pipe proto to subprocess

guido.van.rossum python-checkins at python.org
Wed Jan 29 23:41:58 CET 2014


http://hg.python.org/cpython/rev/83bec639278c
changeset: 88824:83bec639278c
user: Guido van Rossum <guido at python.org>
date: Wed Jan 29 14:28:15 2014 -0800
summary:
 asyncio: Pass through pause/resume from subprocess pipe proto to subprocess proto. Also kill dummy eof_received().
files:
 Lib/asyncio/base_subprocess.py | 7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py
--- a/Lib/asyncio/base_subprocess.py
+++ b/Lib/asyncio/base_subprocess.py
@@ -150,8 +150,11 @@
 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,
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /