Fix another comparison between None and 0.
This commit is contained in:
parent
93a669260d
commit
b5d47efe92
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue