diff options
| author | Giampaolo Rodola' <g.rodola@gmail.com> | 2013-12-07 13:21:09 +0100 |
|---|---|---|
| committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2013-12-07 13:21:09 +0100 |
| commit | 5f512ebb90170264ccb38fdefd7e2d286e256093 (patch) | |
| tree | 480dea995fed7dd4a99a7d4fdcb58a9e5c49e968 /examples | |
| parent | 2b4695bbdcf18a0b9597497713e8634ec051c1b2 (diff) | |
| download | psutil-5f512ebb90170264ccb38fdefd7e2d286e256093.tar.gz | |
Makefile: also take python 2.4 and 2.5 into account
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/process_detail.py | 2 |
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: |
