summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorBTaskaya <batuhanosmantaskaya@gmail.com>2018-02-14 19:29:25 +0300
committerBTaskaya <batuhanosmantaskaya@gmail.com>2018-02-14 19:29:25 +0300
commit78dba05fc02c7258b5f9f5a53cf4ea8a3c6ba856 (patch)
treef5c08763b4f6014049d12d3c238f1eb320254507 /editor
parent79f48cde3d9c47e64cca6090c3db0bff1c9e557f (diff)
PEP3101 applied with changing old type string formatting as new ones
Diffstat (limited to 'editor')
-rw-r--r--editor/icons/SCsub8
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/icons/SCsub b/editor/icons/SCsub
index 9bd036dfa9..64992a9f90 100644
--- a/editor/icons/SCsub
+++ b/editor/icons/SCsub
@@ -34,7 +34,7 @@ def make_editor_icons_action(target, source, env):
s.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
s.write("#ifndef _EDITOR_ICONS_H\n")
s.write("#define _EDITOR_ICONS_H\n")
- s.write("static const int editor_icons_count = %s;\n" % len(svg_icons))
+ s.write("static const int editor_icons_count = {};\n".format(len(svg_icons)))
s.write("static const char *editor_icons_sources[] = {\n")
s.write(icons_string.getvalue())
s.write('};\n\n')
@@ -57,7 +57,7 @@ def make_editor_icons_action(target, source, env):
if icon_name.endswith("BigThumb"): # don't know a better way to handle this
thumb_big_indices.append(str(index))
- s.write('\t"%s"' % icon_name)
+ s.write('\t"{0}"'.format(icon_name))
if fname != svg_icons[-1]:
s.write(",")
@@ -69,13 +69,13 @@ def make_editor_icons_action(target, source, env):
if thumb_medium_indices:
s.write("\n\n")
- s.write("static const int editor_md_thumbs_count = %s;\n" % len(thumb_medium_indices))
+ s.write("static const int editor_md_thumbs_count = {};\n".format(len(thumb_medium_indices)))
s.write("static const int editor_md_thumbs_indices[] = {")
s.write(", ".join(thumb_medium_indices))
s.write("};\n")
if thumb_big_indices:
s.write("\n\n")
- s.write("static const int editor_bg_thumbs_count = %s;\n" % len(thumb_big_indices))
+ s.write("static const int editor_bg_thumbs_count = {};\n".format(len(thumb_big_indices)))
s.write("static const int editor_bg_thumbs_indices[] = {")
s.write(", ".join(thumb_big_indices))
s.write("};\n")