diff options
author | 2016-11-23 07:52:34 +1100 | |
---|---|---|
committer | 2016-11-23 07:53:30 +1100 | |
commit | 19621e215657d4764436cf7eb5bf2414b9b3e9b6 (patch) | |
tree | 5f8db51b2ea553818b99e38772cd087f099d629e | |
parent | e71b08098033c8ef16ccfe1fa54d90e0d0784a91 (diff) |
python why are you incompatible (nw)
-rw-r--r-- | scripts/build/complay.py | 4 |
1 files 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') |