[Python-3000-checkins] r51536 - python/branches/p3yk/Lib/subprocess.py

guido.van.rossum python-3000-checkins at python.org
Thu Aug 24 04:27:45 CEST 2006


Author: guido.van.rossum
Date: Thu Aug 24 04:27:45 2006
New Revision: 51536

Modified:
   python/branches/p3yk/Lib/subprocess.py
Log:
Fix another comparison between None and 0.


Modified: python/branches/p3yk/Lib/subprocess.py
==============================================================================
--- python/branches/p3yk/Lib/subprocess.py	(original)
+++ python/branches/p3yk/Lib/subprocess.py	Thu Aug 24 04:27:45 2006
@@ -420,7 +420,8 @@
 
 def _cleanup():
     for inst in _active[:]:
-        if inst.poll(_deadstate=sys.maxint) >= 0:
+        res = inst.poll(_deadstate=sys.maxint)
+        if res is not None and res >= 0:
             try:
                 _active.remove(inst)
             except ValueError:


More information about the Python-3000-checkins mailing list