Skip to content

Commit

Permalink
Merge pull request #2 from glehmann/python2-split
Browse files Browse the repository at this point in the history
fix string split usage for python 2
  • Loading branch information
uranusjr committed Jun 19, 2018
2 parents 97edad2 + b6b06fa commit 75541bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shellingham/posix.py
Expand Up @@ -21,7 +21,7 @@ def _get_process_mapping():
processes = {}
for line in output.split('\n'):
try:
pid, ppid, args = line.strip().split(maxsplit=2)
pid, ppid, args = line.strip().split(None, 2)
except ValueError:
continue
processes[pid] = Process(
Expand Down

0 comments on commit 75541bc

Please sign in to comment.