diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-27 00:14:21 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-27 00:14:21 +0100 |
commit | a503d1536efd91f6e31260e56972ef2190fe8a04 (patch) | |
tree | b73771e2e402000f75c9729d49d8d74a81784b3d /asyncio/transports.py | |
parent | 80b908deb40ebcb4e54ff5e9dd8902b7a148f3ca (diff) | |
parent | cf89b14fc3e56223f6c06cd1448d12e1051fac28 (diff) | |
download | trollius-a503d1536efd91f6e31260e56972ef2190fe8a04.tar.gz |
Merge with default
Diffstat (limited to 'asyncio/transports.py')
-rw-r--r-- | asyncio/transports.py | 52 |
1 files changed, 1 insertions, 51 deletions
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 |