From 19f789bdfd58eba2ed8fe604bbabf8df0fcc0771 Mon Sep 17 00:00:00 2001 From: Johannes Krampf Date: Sun, 19 Jan 2014 16:03:49 +0100 Subject: build: Be careful with unicode and byte strings for python3 compatibility. Signed-off-by: Johannes Krampf --- scripts/transdump.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/transdump.py') diff --git a/scripts/transdump.py b/scripts/transdump.py index 4caaeb7..665f04a 100755 --- a/scripts/transdump.py +++ b/scripts/transdump.py @@ -44,7 +44,10 @@ def main(): filehdl = open(filename, 'r') mem = parseMem(filehdl) for i in mem: - sys.stdout.write(struct.pack(" (3, 0)): + sys.stdout.buffer.write(struct.pack("