From: Guido van Rossum Date: Thu, 24 Aug 2006 02:27:45 +0000 (+0000) Subject: Fix another comparison between None and 0. X-Git-Tag: v3.0a1~1353 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5d47efe92fd12cde1de6a473108ef48238a43cc;p=thirdparty%2FPython%2Fcpython.git Fix another comparison between None and 0. --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 0d191298884f..55e267fd7aed 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: