Kaydet (Commit) b5d47efe authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix another comparison between None and 0.

üst 93a66926
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment