Fix Python 2 compatibility. Someone can fix Python 3 if they want, but not at the expense of 2.

This commit is contained in:
Vas Crabb 2015-03-03 21:53:10 +11:00
parent 1938932f80
commit 0fcb2b9ecb

View File

@ -40,7 +40,7 @@ try:
chunk = src.read(16) chunk = src.read(16)
if chunk: if chunk:
for b in chunk: for b in chunk:
dst.write('0x%02x' % b) dst.write('0x%02x' % ord(b))
offs = offs + 1 offs = offs + 1
if offs != byteCount: if offs != byteCount:
dst.write(',') dst.write(',')