From b4408c290604dca7f831c2652435932f80fe46c6 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Wed, 30 Mar 2016 21:06:12 -0700 Subject: [PATCH] complay.py: Python 3 compat. (nw) --- scripts/build/complay.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/build/complay.py b/scripts/build/complay.py index 68681c72fbf..eea6da0c099 100644 --- a/scripts/build/complay.py +++ b/scripts/build/complay.py @@ -38,11 +38,9 @@ try: while True: chunk = src.read(byteCount) if chunk: - compchunk = zlib.compress(chunk, 9) + compchunk = bytearray(zlib.compress(chunk, 9)) compsize = len(compchunk) for b in compchunk: - # For Python 2.x compatibility. - b = ord(b) dst.write('%d' % b) offs += 1 if offs != compsize: