Skip to content

Commit 99d6fa5

Browse files
authored
Merge pull request #85 from apple/shahmishal/linux_load_command-python3
Update the linux_load_command.py to support python3
2 parents 3386a27 + 381a9b8 commit 99d6fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-snapshot-binaries/linux_load_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def process_library(args, lib):
8585
numberOfLinesSeen = 0
8686

8787
print("Visiting lib: {}".format(lib))
88-
lines = list(reversed(subprocess.check_output([args.read_elf, "-program-headers", lib]).split("\n")[:-1]))
88+
lines = list(reversed(subprocess.check_output([args.read_elf, "-program-headers", lib], universal_newlines=True).split("\n")[:-1]))
8989
p = ParseState()
9090

9191
# Until we finish parsing or run out of lines to parse...

0 commit comments

Comments
 (0)