summaryrefslogtreecommitdiff
path: root/scripts/pidof.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-02-15 13:05:44 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2020-02-15 13:05:44 +0100
commitcec43a2015da2b7cf02d7f01b719731348881ce2 (patch)
tree30181213934ed2f85717d65289bc4e06bcd57bba /scripts/pidof.py
parentd03c176c0478ed96a529be103318c42fa2f0af9d (diff)
downloadpsutil-cec43a2015da2b7cf02d7f01b719731348881ce2.tar.gz
update doc
Diffstat (limited to 'scripts/pidof.py')
-rwxr-xr-xscripts/pidof.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pidof.py b/scripts/pidof.py
index bcb8a2e6..c1042f4f 100755
--- a/scripts/pidof.py
+++ b/scripts/pidof.py
@@ -18,7 +18,7 @@ import sys
def pidof(pgname):
pids = []
- for proc in psutil.process_iter(attrs=['name', 'cmdline']):
+ for proc in psutil.process_iter(['name', 'cmdline']):
# search for matches in the process name and cmdline
if proc.info['name'] == pgname or \
proc.info['cmdline'] and proc.info['cmdline'][0] == pgname: