This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author qingyunha
Recipients qingyunha
Date 2018-05-16.13:21:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526476881.16.0.682650639539.issue33538@psf.upfronthosting.co.za>
In-reply-to
Content
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index bafb501fcf..4a0bb33978 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -766,7 +766,7 @@ class Popen(object):
                   ResourceWarning, source=self)
         # In case the child hasn't been waited on, check if it's done.
         self._internal_poll(_deadstate=_maxsize)
-        if self.returncode is None and _active is not None:
+        if self.returncode is None:
             # Child is still running, keep us alive until we can wait on it.
             _active.append(self)
 

the `_active` is initialized with [] at the beginning of the module.
History
Date User Action Args
2018-05-16 13:21:21qingyunhasetrecipients: + qingyunha
2018-05-16 13:21:21qingyunhasetmessageid: <1526476881.16.0.682650639539.issue33538@psf.upfronthosting.co.za>
2018-05-16 13:21:21qingyunhalinkissue33538 messages
2018-05-16 13:21:21qingyunhacreate