From 4085f1499c55b38343b86ced4b67b7382ffbecc3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 21 Jul 2006 17:36:31 +0000 Subject: [PATCH] Fix check for empty list (vs. None). --- Lib/popen2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/popen2.py b/Lib/popen2.py index 6f56a926e99..694979e6d63 100644 --- a/Lib/popen2.py +++ b/Lib/popen2.py @@ -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)