Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84c717d commit 7a82afeCopy full SHA for 7a82afe
1 file changed
Lib/asyncio/base_subprocess.py
@@ -54,11 +54,14 @@ def __repr__(self):
54
info = [self.__class__.__name__]
55
if self._closed:
56
info.append('closed')
57
- info.append('pid=%s' % self._pid)
+ if self._pid is not None:
58
+ info.append('pid=%s' % self._pid)
59
if self._returncode is not None:
60
info.append('returncode=%s' % self._returncode)
- else:
61
+ elif self._pid is not None:
62
info.append('running')
63
+ else:
64
+ info.append('not started')
65
66
stdin = self._pipes.get(0)
67
if stdin is not None:
0 commit comments