mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
Fix another comparison between None and 0.
This commit is contained in:
parent
93a669260d
commit
b5d47efe92
1 changed files with 2 additions and 1 deletions
|
@ -420,7 +420,8 @@ _active = []
|
||||||
|
|
||||||
def _cleanup():
|
def _cleanup():
|
||||||
for inst in _active[:]:
|
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:
|
try:
|
||||||
_active.remove(inst)
|
_active.remove(inst)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue