Fix another comparison between None and 0.

This commit is contained in:
Guido van Rossum 2006-08-24 02:27:45 +00:00
parent 93a669260d
commit b5d47efe92

View 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: