We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9ccee commit f091bdcCopy full SHA for f091bdc
powerline_shell/segments/jobs.py
@@ -13,8 +13,7 @@ def run(self):
13
if system.startswith("CYGWIN") or system.startswith("MINGW"):
14
# cygwin ps is a special snowflake...
15
output_proc = subprocess.Popen(["ps", "-af"], stdout=subprocess.PIPE)
16
- output = map(lambda l: int(l.split()[2].strip()),
17
- output_proc.communicate()[0].decode("utf-8").splitlines()[1:])
+ output = [int(l.split()[2].strip()) for l in output_proc.communicate()[0].decode("utf-8").splitlines()[1:]]
18
self.num_jobs = output.count(os.getppid()) - 1
19
else:
20
# The following logic was tested on:
0 commit comments