]> granicus.if.org Git - python/commitdiff
asyncio: BaseSubprocessTransport: repr() mentions when the child process is
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Feb 2015 21:50:33 +0000 (22:50 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Feb 2015 21:50:33 +0000 (22:50 +0100)
running

Lib/asyncio/base_subprocess.py

index 5458ab154c3f53400b37b4254f18255afea9f663..f56873fbeadef61e8b763f4ab4319323434ccb49 100644 (file)
@@ -57,6 +57,8 @@ class BaseSubprocessTransport(transports.SubprocessTransport):
         info.append('pid=%s' % self._pid)
         if self._returncode is not None:
             info.append('returncode=%s' % self._returncode)
+        else:
+            info.append('running')
 
         stdin = self._pipes.get(0)
         if stdin is not None: