8000 Python issue #23347: Make BaseSubprocessTransport.wait() private · python/asyncio@d37a906 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit d37a906

Browse files
committed
Python issue #23347: Make BaseSubprocessTransport.wait() private
1 parent 787b494 commit d37a906

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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."""

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)

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

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)
0