summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-30 00:16:14 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-30 00:16:14 +0100
commitb010e17aa67edfa97618893f0539ffc8802d1982 (patch)
tree12cef9e9c82c0e1d6c8dc0ff63ee28fa6588e3da /Lib
parent4f5e85a5e0f3e40c84bfd9f25919aa2d459ec243 (diff)
downloadcpython-b010e17aa67edfa97618893f0539ffc8802d1982.tar.gz
Issue #23347, asyncio: Make BaseSubprocessTransport.wait() private
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/base_subprocess.py2
-rw-r--r--Lib/asyncio/subprocess.py2
-rw-r--r--Lib/asyncio/unix_events.py2
-rw-r--r--Lib/asyncio/windows_events.py2
4 files changed, 4 insertions, 4 deletions
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