asyncio.subprocess: Replace Process.get_subprocess() method with a

Process.subprocess read-only property
This commit is contained in:
Victor Stinner 2014-02-03 23:08:14 +01:00
parent cb306d1b59
commit b79eb0502c
3 changed files with 27 additions and 26 deletions

View file

@ -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):