diff options
author | unknown <numaanzaheerahmed@yahoo.com> | 2019-07-11 20:32:36 +0530 |
---|---|---|
committer | unknown <numaanzaheerahmed@yahoo.com> | 2019-07-11 22:26:04 +0530 |
commit | f236b460e56b1f83bfebb2c8c574f8ff2221955d (patch) | |
tree | e0175de8dad628a8c29abfb1f6f9c0cc05b4fbd4 | |
parent | 8a1dc8393a68be8dc17d74e8b2441d298eb42ded (diff) |
Some small fixes to warnings in python scripts
-rw-r--r-- | editor/editor_builders.py | 8 | ||||
-rw-r--r-- | modules/mono/build_scripts/mono_reg_utils.py | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/editor/editor_builders.py b/editor/editor_builders.py index 19c5e0b924..910c53e2ff 100644 --- a/editor/editor_builders.py +++ b/editor/editor_builders.py @@ -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 unsigned char _font_" + name + "[] = {\n") - for i in range(len(buf)): - g.write("\t" + byte_to_str(buf[i]) + ",\n") + for j in range(len(buf)): + g.write("\t" + byte_to_str(buf[j]) + ",\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] g.write("static const unsigned char _translation_" + name + "_compressed[] = {\n") - for i in range(len(buf)): - g.write("\t" + byte_to_str(buf[i]) + ",\n") + for j in range(len(buf)): + g.write("\t" + byte_to_str(buf[j]) + ",\n") g.write("};\n") diff --git a/modules/mono/build_scripts/mono_reg_utils.py b/modules/mono/build_scripts/mono_reg_utils.py index 583708bf07..b2c48f0a61 100644 --- a/modules/mono/build_scripts/mono_reg_utils.py +++ b/modules/mono/build_scripts/mono_reg_utils.py @@ -116,5 +116,3 @@ def find_msbuild_tools_path_reg(): return value except (WindowsError, OSError): return '' - - return '' |