mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
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
Block a user