summaryrefslogtreecommitdiffstatshomepage
path: root/src/build/file2str.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/build/file2str.py')
-rw-r--r--src/build/file2str.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/build/file2str.py b/src/build/file2str.py
index fbd39557281..7a6de5b11c5 100644
--- a/src/build/file2str.py
+++ b/src/build/file2str.py
@@ -29,7 +29,7 @@ except IOError:
print("Unable to open source file '%s'" % srcfile)
sys.exit(-1)
-bytes = os.path.getsize(srcfile)
+byteCount = os.path.getsize(srcfile)
try:
dst = open(dstfile,'w')
dst.write('extern const %s %s[];\n' % ( type, varname ));
@@ -42,11 +42,11 @@ try:
for b in chunk:
dst.write('0x%02x' % b)
offs = offs + 1
- if offs != bytes:
+ if offs != byteCount:
dst.write(',')
else:
break
- if offs != bytes:
+ if offs != byteCount:
dst.write('\n\t')
if terminate == 1:
dst.write(',0x00')