diff options
author | Georg Brandl <georg@python.org> | 2006-07-21 17:36:31 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-07-21 17:36:31 (GMT) |
commit | 4085f1499c55b38343b86ced4b67b7382ffbecc3 (patch) | |
tree | 18020b2b39e0d8fe7fed96b4ac427ae05b022091 /Lib/popen2.py | |
parent | b110bad2d9c1c4fcfafdc75db2213cbc0b753342 (diff) | |
download | cpython-4085f1499c55b38343b86ced4b67b7382ffbecc3.zip cpython-4085f1499c55b38343b86ced4b67b7382ffbecc3.tar.gz cpython-4085f1499c55b38343b86ced4b67b7382ffbecc3.tar.bz2 |
Fix check for empty list (vs. None).
Diffstat (limited to 'Lib/popen2.py')
-rw-r--r-- | Lib/popen2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/popen2.py b/Lib/popen2.py index 6f56a92..694979e 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) |