From 0fcb2b9ecb9976d447b4bd2d31c29fface99717f Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Tue, 3 Mar 2015 21:53:10 +1100 Subject: [PATCH] Fix Python 2 compatibility. Someone can fix Python 3 if they want, but not at the expense of 2. --- src/build/file2str.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/file2str.py b/src/build/file2str.py index 7a6de5b11c5..18045560226 100644 --- a/src/build/file2str.py +++ b/src/build/file2str.py @@ -40,7 +40,7 @@ try: chunk = src.read(16) if chunk: for b in chunk: - dst.write('0x%02x' % b) + dst.write('0x%02x' % ord(b)) offs = offs + 1 if offs != byteCount: dst.write(',')