mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Merge pull request #144 from reedlove/patch-1
Fix TypeError exception in file2str (reedlove)
This commit is contained in:
commit
a171b5373e
@ -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(',')
|
||||||
|
Loading…
Reference in New Issue
Block a user