From 4012c6a89a485d3587807373a95aca16d1e51dcd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 26 Jan 2014 23:58:14 +0100 Subject: replace read/write_pipe_protocol attributes with classic methods --- asyncio/transports.py | 52 +-------------------------------------------------- 1 file changed, 1 insertion(+), 51 deletions(-) (limited to 'asyncio/transports.py') diff --git a/asyncio/transports.py b/asyncio/transports.py index 67ae7fd..95a14e4 100644 --- a/asyncio/transports.py +++ b/asyncio/transports.py @@ -5,7 +5,7 @@ import sys _PY34 = sys.version_info >= (3, 4) __all__ = ['BaseTransport', 'ReadTransport', 'WriteTransport', - 'Transport', 'DatagramTransport', 'SubprocessTransport', + 'Transport', 'DatagramTransport', ] @@ -169,53 +169,3 @@ class DatagramTransport(BaseTransport): raise NotImplementedError -class SubprocessTransport(BaseTransport): - - def get_pid(self): - """Get subprocess id.""" - raise NotImplementedError - - def get_returncode(self): - """Get subprocess returncode. - - See also - http://docs.python.org/3/library/subprocess#subprocess.Popen.returncode - """ - raise NotImplementedError - - def get_pipe_transport(self, fd): - """Get transport for pipe with number fd.""" - raise NotImplementedError - - def send_signal(self, signal): - """Send signal to subprocess. - - See also: - docs.python.org/3/library/subprocess#subprocess.Popen.send_signal - """ - raise NotImplementedError - - def terminate(self): - """Stop the subprocess. - - Alias for close() method. - - On Posix OSs the method sends SIGTERM to the subprocess. - On Windows the Win32 API function TerminateProcess() - is called to stop the subprocess. - - See also: - http://docs.python.org/3/library/subprocess#subprocess.Popen.terminate - """ - raise NotImplementedError - - def kill(self): - """Kill the subprocess. - - On Posix OSs the function sends SIGKILL to the subprocess. - On Windows kill() is an alias for terminate(). - - See also: - http://docs.python.org/3/library/subprocess#subprocess.Popen.kill - """ - raise NotImplementedError -- cgit v1.2.1