From: Victor Stinner Date: Thu, 29 Jan 2015 23:16:14 +0000 (+0100) Subject: Issue #23347, asyncio: Make BaseSubprocessTransport.wait() private X-Git-Tag: v3.4.3rc1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1241ecc21bbb3f86734a3071b93514a12dd1ee23;p=python Issue #23347, asyncio: Make BaseSubprocessTransport.wait() private --- diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py index 001f9b8c24..70676ab3ff 100644 --- a/Lib/asyncio/base_subprocess.py +++ b/Lib/asyncio/base_subprocess.py @@ -208,7 +208,7 @@ class BaseSubprocessTransport(transports.SubprocessTransport): waiter.set_result(returncode) self._exit_waiters = None - def wait(self): + def _wait(self): """Wait until the process exit and return the process return code. This method is a coroutine.""" diff --git a/Lib/asyncio/subprocess.py b/Lib/asyncio/subprocess.py index d0c9779c1c..4600a9f417 100644 --- a/Lib/asyncio/subprocess.py +++ b/Lib/asyncio/subprocess.py @@ -115,7 +115,7 @@ class Process: """Wait until the process exit and return the process return code. This method is a coroutine.""" - return (yield from self._transport.wait()) + return (yield from self._transport._wait()) def send_signal(self, signal): self._transport.send_signal(signal) diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 3ecdfd2e0b..1fc39abe09 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -188,7 +188,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop): yield from waiter except: transp.close() - yield from transp.wait() + yield from transp._wait() raise return transp diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index 437eb0ac9d..c4bffc4734 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -375,7 +375,7 @@ class ProactorEventLoop(proactor_events.BaseProactorEventLoop): yield from waiter except: transp.close() - yield from transp.wait() + yield from transp._wait() raise return transp