mirror of https://github.com/python/cpython.git
Issue #23347, asyncio: Make BaseSubprocessTransport.wait() private
This commit is contained in:
parent
0698638d79
commit
1241ecc21b
|
@ -208,7 +208,7 @@ def _process_exited(self, returncode):
|
||||||
waiter.set_result(returncode)
|
waiter.set_result(returncode)
|
||||||
self._exit_waiters = None
|
self._exit_waiters = None
|
||||||
|
|
||||||
def wait(self):
|
def _wait(self):
|
||||||
"""Wait until the process exit and return the process return code.
|
"""Wait until the process exit and return the process return code.
|
||||||
|
|
||||||
This method is a coroutine."""
|
This method is a coroutine."""
|
||||||
|
|
|
@ -115,7 +115,7 @@ def wait(self):
|
||||||
"""Wait until the process exit and return the process return code.
|
"""Wait until the process exit and return the process return code.
|
||||||
|
|
||||||
This method is a coroutine."""
|
This method is a coroutine."""
|
||||||
return (yield from self._transport.wait())
|
return (yield from self._transport._wait())
|
||||||
|
|
||||||
def send_signal(self, signal):
|
def send_signal(self, signal):
|
||||||
self._transport.send_signal(signal)
|
self._transport.send_signal(signal)
|
||||||
|
|
|
@ -188,7 +188,7 @@ def _make_subprocess_transport(self, protocol, args, shell,
|
||||||
yield from waiter
|
yield from waiter
|
||||||
except:
|
except:
|
||||||
transp.close()
|
transp.close()
|
||||||
yield from transp.wait()
|
yield from transp._wait()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
return transp
|
return transp
|
||||||
|
|
|
@ -375,7 +375,7 @@ def _make_subprocess_transport(self, protocol, args, shell,
|
||||||
yield from waiter
|
yield from waiter
|
||||||
except:
|
except:
|
||||||
transp.close()
|
transp.close()
|
||||||
yield from transp.wait()
|
yield from transp._wait()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
return transp
|
return transp
|
||||||
|
|
Loading…
Reference in New Issue