summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author andrew-gardner <andrew.gardner@liu.se>2015-03-03 10:16:05 +0100
committer andrew-gardner <andrew.gardner@liu.se>2015-03-03 10:16:05 +0100
commit1938932f809965b2f76823e180dfda48c8daecd5 (patch)
tree6d2fa3640a251df7150c45b2c7f09d4e37874eeb
parenta171b5373eb6475e6c7ec9a6ba3253e713f80090 (diff)
Change dangerous variable name.
-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')