mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
asyncio: BaseSubprocessTransport: repr() mentions when the child process is
running
This commit is contained in:
parent
df0db49b1b
commit
4e82fb99a0
1 changed files with 2 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ def __repr__(self):
|
||||||
info.append('pid=%s' % self._pid)
|
info.append('pid=%s' % self._pid)
|
||||||
if self._returncode is not None:
|
if self._returncode is not None:
|
||||||
info.append('returncode=%s' % self._returncode)
|
info.append('returncode=%s' % self._returncode)
|
||||||
|
else:
|
||||||
|
info.append('running')
|
||||||
|
|
||||||
stdin = self._pipes.get(0)
|
stdin = self._pipes.get(0)
|
||||||
if stdin is not None:
|
if stdin is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue