[Python-checkins] r50759 - python/trunk/Lib/popen2.py
georg.brandl
python-checkins at python.org
Fri Jul 21 19:36:32 CEST 2006
Author: georg.brandl
Date: Fri Jul 21 19:36:31 2006
New Revision: 50759
Modified:
python/trunk/Lib/popen2.py
Log:
Fix check for empty list (vs. None).
Modified: python/trunk/Lib/popen2.py
==============================================================================
--- python/trunk/Lib/popen2.py (original)
+++ python/trunk/Lib/popen2.py Fri Jul 21 19:36:31 2006
@@ -72,7 +72,7 @@
# 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)
More information about the Python-checkins
mailing list