Merge pull request #30525 from Anutrix/simple-misc-fixes
Some small fixes to warnings in python scripts
This commit is contained in:
commit
e5c6ebbd36
@ -63,8 +63,8 @@ def make_fonts_header(target, source, env):
|
|||||||
|
|
||||||
g.write("static const int _font_" + name + "_size = " + str(len(buf)) + ";\n")
|
g.write("static const int _font_" + name + "_size = " + str(len(buf)) + ";\n")
|
||||||
g.write("static const unsigned char _font_" + name + "[] = {\n")
|
g.write("static const unsigned char _font_" + name + "[] = {\n")
|
||||||
for i in range(len(buf)):
|
for j in range(len(buf)):
|
||||||
g.write("\t" + byte_to_str(buf[i]) + ",\n")
|
g.write("\t" + byte_to_str(buf[j]) + ",\n")
|
||||||
|
|
||||||
g.write("};\n")
|
g.write("};\n")
|
||||||
|
|
||||||
@ -97,8 +97,8 @@ def make_translations_header(target, source, env):
|
|||||||
name = os.path.splitext(os.path.basename(sorted_paths[i]))[0]
|
name = os.path.splitext(os.path.basename(sorted_paths[i]))[0]
|
||||||
|
|
||||||
g.write("static const unsigned char _translation_" + name + "_compressed[] = {\n")
|
g.write("static const unsigned char _translation_" + name + "_compressed[] = {\n")
|
||||||
for i in range(len(buf)):
|
for j in range(len(buf)):
|
||||||
g.write("\t" + byte_to_str(buf[i]) + ",\n")
|
g.write("\t" + byte_to_str(buf[j]) + ",\n")
|
||||||
|
|
||||||
g.write("};\n")
|
g.write("};\n")
|
||||||
|
|
||||||
|
@ -116,5 +116,3 @@ def find_msbuild_tools_path_reg():
|
|||||||
return value
|
return value
|
||||||
except (WindowsError, OSError):
|
except (WindowsError, OSError):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
return ''
|
|
||||||
|
Loading…
Reference in New Issue
Block a user