mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
complay.py: Python 3 compat. (nw)
This commit is contained in:
parent
1892ba703e
commit
b4408c2906
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user