diff options
author | Guido van Rossum <guido@python.org> | 2006-08-24 02:27:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-24 02:27:45 (GMT) |
commit | b5d47efe92fd12cde1de6a473108ef48238a43cc (patch) | |
tree | 2a95d8ef7dc1b32b5b7140eed1ad563c08f36343 /Lib | |
parent | 93a669260dcade6c046a5b056c0b3111f719d7b5 (diff) | |
download | cpython-b5d47efe92fd12cde1de6a473108ef48238a43cc.zip cpython-b5d47efe92fd12cde1de6a473108ef48238a43cc.tar.gz cpython-b5d47efe92fd12cde1de6a473108ef48238a43cc.tar.bz2 |
Fix another comparison between None and 0.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/subprocess.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |