From 19621e215657d4764436cf7eb5bf2414b9b3e9b6 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 23 Nov 2016 07:52:34 +1100 Subject: [PATCH] python why are you incompatible (nw) --- scripts/build/complay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build/complay.py b/scripts/build/complay.py index c44cc1e678f..4eecaa97353 100644 --- a/scripts/build/complay.py +++ b/scripts/build/complay.py @@ -88,7 +88,7 @@ class XmlError(Exception): def compressLayout(src, dst, comp): state = [0, 0] def write(block): - for ch in block: + for ch in bytearray(block): if 0 == state[0]: dst('\t') elif 0 == (state[0] % 32): @@ -96,7 +96,7 @@ def compressLayout(src, dst, comp): else: dst(', ') state[0] += 1 - dst('%3u' % (ord(ch))) + dst('%3u' % (ch)) def output(text): block = text.encode('UTF-8')