summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2013-12-07 13:21:09 +0100
committerGiampaolo Rodola' <g.rodola@gmail.com>2013-12-07 13:21:09 +0100
commit5f512ebb90170264ccb38fdefd7e2d286e256093 (patch)
tree480dea995fed7dd4a99a7d4fdcb58a9e5c49e968 /examples
parent2b4695bbdcf18a0b9597497713e8634ec051c1b2 (diff)
downloadpsutil-5f512ebb90170264ccb38fdefd7e2d286e256093.tar.gz
Makefile: also take python 2.4 and 2.5 into account
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/process_detail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/process_detail.py b/examples/process_detail.py
index 91525f70..9222644d 100755
--- a/examples/process_detail.py
+++ b/examples/process_detail.py
@@ -106,7 +106,7 @@ def run(pid):
for thread in pinfo['threads']:
print_('', 'id=%s, user-time=%s, sys-time=%s' % (
thread.id, thread.user_time, thread.system_time))
- if pinfo['connections'] != ACCESS_DENIED:
+ if pinfo['connections'] not in (ACCESS_DENIED, []):
print_('open connections', '')
for conn in pinfo['connections']:
if conn.type == socket.SOCK_STREAM: