[t1Lib] fix TypeError in writeOther func

This commit is contained in:
Cosimo Lupo 2015-10-22 19:38:13 +01:00
parent aa7753cebf
commit 6c51e3de97

View File

@ -265,7 +265,7 @@ def writeOther(path, data, dohex=False):
if code == 2 and dohex: if code == 2 and dohex:
while chunk: while chunk:
f.write(eexec.hexString(chunk[:hexlinelen])) f.write(eexec.hexString(chunk[:hexlinelen]))
f.write('\r') f.write(b'\r')
chunk = chunk[hexlinelen:] chunk = chunk[hexlinelen:]
else: else:
f.write(chunk) f.write(chunk)