mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Fix check for empty list (vs. None).
This commit is contained in:
parent
b110bad2d9
commit
4085f1499c
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class Popen3:
|
|||
# In case the child hasn't been waited on, check if it's done.
|
||||
self.poll(_deadstate=sys.maxint)
|
||||
if self.sts < 0:
|
||||
if _active:
|
||||
if _active is not None:
|
||||
# Child is still running, keep us alive until we can wait on it.
|
||||
_active.append(self)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue