From b5d47efe92fd12cde1de6a473108ef48238a43cc Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 24 Aug 2006 02:27:45 +0000 Subject: Fix another comparison between None and 0. --- Lib/subprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 0d19129..55e267f 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -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: -- cgit v0.12