Merge pull request #144 from reedlove/patch-1

Fix TypeError exception in file2str (reedlove)
This commit is contained in:
Andrew Gardner 2015-03-03 10:16:22 +01:00
commit a171b5373e

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' % ord(b)) dst.write('0x%02x' % b)
offs = offs + 1 offs = offs + 1
if offs != bytes: if offs != bytes:
dst.write(',') dst.write(',')