| Previous | 199869 Revisions | Next |
| r36217 Tuesday 3rd March, 2015 at 10:53:10 UTC by Vasantha Crabb |
|---|
| Fix Python 2 compatibility. Someone can fix Python 3 if they want, but not at the expense of 2. |
| [src/build] | file2str.py |
| r244728 | r244729 | |
|---|---|---|
| 40 | 40 | chunk = src.read(16) |
| 41 | 41 | if chunk: |
| 42 | 42 | for b in chunk: |
| 43 | dst.write('0x%02x' % b) | |
| 43 | dst.write('0x%02x' % ord(b)) | |
| 44 | 44 | offs = offs + 1 |
| 45 | 45 | if offs != byteCount: |
| 46 | 46 | dst.write(',') |
| https://github.com/mamedev/mame/commit/0fcb2b9ecb9976d447b4bd2d31c29fface99717f |
| Previous | 199869 Revisions | Next |