Skip to content

Commit

Permalink
Merge pull request iovisor#2135 from nasastry/python3_syscall_fix
Browse files Browse the repository at this point in the history
syscall.py: Fixes python3 related error
  • Loading branch information
palmtenor committed Jan 11, 2019
2 parents f2e063c + 3aebfad commit 6a0a791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/bcc/syscall.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _parse_syscall(line):
# SYSCALL_NUM\tSYSCALL_NAME pairs.
out = subprocess.check_output(['ausyscall', '--dump'], stderr=subprocess.STDOUT)
# remove the first line of expected output
out = out.split('\n',1)[1]
out = out.split(b'\n',1)[1]
syscalls = dict(map(_parse_syscall, out.strip().split(b'\n')))
except Exception as e:
if platform.machine() == "x86_64":
Expand Down

0 comments on commit 6a0a791

Please sign in to comment.