mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
asyncio.subprocess: Replace Process.get_subprocess() method with a
Process.subprocess read-only property
This commit is contained in:
parent
cb306d1b59
commit
b79eb0502c
3 changed files with 27 additions and 26 deletions
|
@ -106,7 +106,8 @@ class Process:
|
|||
yield from waiter
|
||||
return waiter.result()
|
||||
|
||||
def get_subprocess(self):
|
||||
@property
|
||||
def subprocess(self):
|
||||
return self._transport.get_extra_info('subprocess')
|
||||
|
||||
def _check_alive(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue