Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1241ecc

Browse files
committed
Issue #23347, asyncio: Make BaseSubprocessTransport.wait() private
1 parent 0698638 commit 1241ecc

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/asyncio/base_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _process_exited(self, returncode):
208208
waiter.set_result(returncode)
209209
self._exit_waiters = None
210210

211-
def wait(self):
211+
def _wait(self):
212212
"""Wait until the process exit and return the process return code.
213213
214214
This method is a coroutine."""

Lib/asyncio/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def wait(self):
115115
"""Wait until the process exit and return the process return code.
116116
117117
This method is a coroutine."""
118-
return (yield from self._transport.wait())
118+
return (yield from self._transport._wait())
119119

120120
def send_signal(self, signal):
121121
self._transport.send_signal(signal)

Lib/asyncio/unix_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _make_subprocess_transport(self, protocol, args, shell,
188188
yield from waiter
189189
except:
190190
transp.close()
191-
yield from transp.wait()
191+
yield from transp._wait()
192192
raise
193193

194194
return transp

Lib/asyncio/windows_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def _make_subprocess_transport(self, protocol, args, shell,
375375
yield from waiter
376376
except:
377377
transp.close()
378-
yield from transp.wait()
378+
yield from transp._wait()
379379
raise
380380

381381
return transp

0 commit comments

Comments
 (0)