]> granicus.if.org Git - python/commitdiff
Fix check for empty list (vs. None).
authorGeorg Brandl <georg@python.org>
Fri, 21 Jul 2006 17:36:31 +0000 (17:36 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 21 Jul 2006 17:36:31 +0000 (17:36 +0000)
Lib/popen2.py

index 6f56a926e99385df31ba9c1f340ddc54d8fd19bb..694979e6d632a16cb598bf267cd8ada1e2bef41d 100644 (file)
@@ -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)