From: Georg Brandl Date: Fri, 21 Jul 2006 17:36:31 +0000 (+0000) Subject: Fix check for empty list (vs. None). X-Git-Tag: v2.5b3~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4085f1499c55b38343b86ced4b67b7382ffbecc3;p=thirdparty%2FPython%2Fcpython.git Fix check for empty list (vs. None). --- diff --git a/Lib/popen2.py b/Lib/popen2.py index 6f56a926e993..694979e6d632 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)