Fix check for empty list (vs. None).

This commit is contained in:
Georg Brandl 2006-07-21 17:36:31 +00:00
parent b110bad2d9
commit 4085f1499c

View file

@ -72,7 +72,7 @@ class Popen3:
# In case the child hasn't been waited on, check if it's done. # In case the child hasn't been waited on, check if it's done.
self.poll(_deadstate=sys.maxint) self.poll(_deadstate=sys.maxint)
if self.sts < 0: if self.sts < 0:
if _active: if _active is not None:
# Child is still running, keep us alive until we can wait on it. # Child is still running, keep us alive until we can wait on it.
_active.append(self) _active.append(self)