diff options
author | Reed <reedlove@users.noreply.github.com> | 2015-03-02 10:28:31 -0800 |
---|---|---|
committer | Reed <reedlove@users.noreply.github.com> | 2015-03-02 10:28:31 -0800 |
commit | 3fdc0692d959d80d125e99935ba2d0a5f8062172 (patch) | |
tree | b96d6b6d021ae487dc08f1aa3aab31aeef16e618 /src/build | |
parent | 40e6fb438765a497ef9fddd17fe7e1e2eeb3ce27 (diff) |
Update file2str.py
On line 43, wouldn't "ord(b)" simply be "b" since each iteration through a "bytes" type already returns an "int"? In Python 3.x, the "ord" function expects type "str" so passing an "int" causes a "TypeError" exception.
Diffstat (limited to 'src/build')
-rw-r--r-- | src/build/file2str.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build/file2str.py b/src/build/file2str.py index ee5ce21541d..fbd39557281 100644 --- a/src/build/file2str.py +++ b/src/build/file2str.py @@ -40,7 +40,7 @@ try: chunk = src.read(16) if chunk: for b in chunk: - dst.write('0x%02x' % ord(b)) + dst.write('0x%02x' % b) offs = offs + 1 if offs != bytes: dst.write(',') |