diff options
author | 2016-03-30 21:06:12 -0700 | |
---|---|---|
committer | 2016-03-30 21:06:12 -0700 | |
commit | b4408c290604dca7f831c2652435932f80fe46c6 (patch) | |
tree | 5360b6d27cc77a2e92b64e5ca57e4327e9606e4a /scripts/build/complay.py | |
parent | 1892ba703ea8bca72b3063dda0af55fa0aa8f0c9 (diff) |
complay.py: Python 3 compat. (nw)
Diffstat (limited to 'scripts/build/complay.py')
-rw-r--r-- | scripts/build/complay.py | 4 |
1 files changed, 1 insertions, 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: |