Try to make codeclimate happy

This commit is contained in:
mw 2019-09-05 21:08:05 +02:00
parent a5ef863647
commit f19cf652cb

View file

@ -69,8 +69,9 @@ class Module(bumblebee.engine.Module):
def _resume_screensaver(self):
pids = []
success = True
xprop_path = bumblebee.util.which('xprop')
for process in psutil.process_iter():
if process.cmdline() == [bumblebee.util.which('xprop'), '-id', str(self._xid), '-spy']:
if process.cmdline() == [xprop_path, '-id', str(self._xid), '-spy']:
pids.append(process.pid)
for pid in pids:
try: