]> granicus.if.org Git - python/commitdiff
Fix another comparison between None and 0.
authorGuido van Rossum <guido@python.org>
Thu, 24 Aug 2006 02:27:45 +0000 (02:27 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 24 Aug 2006 02:27:45 +0000 (02:27 +0000)
Lib/subprocess.py

index 0d191298884f414167ee1784e325b5d994a77354..55e267fd7aed97a8ae242fa1f8eb041757afc648 100644 (file)
@@ -420,7 +420,8 @@ _active = []
 
 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: