Commit 6a0a7918 authored by Teng Qin's avatar Teng Qin Committed by GitHub

Merge pull request #2135 from nasastry/python3_syscall_fix

syscall.py: Fixes python3 related error
parents f2e063c2 3aebfadd
......@@ -378,7 +378,7 @@ try:
# 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":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment