mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
python why are you incompatible (nw)
This commit is contained in:
parent
e71b080980
commit
19621e2156
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user