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:
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to