aboutsummaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorRémi Verschelde2016-11-02 22:29:36 +0100
committerRémi Verschelde2016-11-02 22:29:36 +0100
commita7389217f8170dde67fa6bb50c1046ae4a5a9e5a (patch)
tree9038a02fd751230f58d90063b399d71a125f5f6c /tools/editor
parente259bf8bbb00c5555675892295ce50aa32695737 (diff)
downloadgodot-a7389217f8170dde67fa6bb50c1046ae4a5a9e5a.tar.gz
godot-a7389217f8170dde67fa6bb50c1046ae4a5a9e5a.tar.zst
godot-a7389217f8170dde67fa6bb50c1046ae4a5a9e5a.zip
style: Fix PEP8 blank lines issues in Python files
Done with `autopep8 --select=E3,W3`, fixes: - E301 - Add missing blank line. - E302 - Add missing 2 blank lines. - E303 - Remove extra blank lines. - E304 - Remove blank line following function decorator. - E309 - Add missing blank line. - W391 - Remove trailing blank lines.
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/SCsub8
-rw-r--r--tools/editor/icons/SCsub4
2 files changed, 1 insertions, 11 deletions
diff --git a/tools/editor/SCsub b/tools/editor/SCsub
index 0dbb7d3f2..625103eae 100644
--- a/tools/editor/SCsub
+++ b/tools/editor/SCsub
@@ -14,7 +14,6 @@ def make_doc_header(target, source, env):
import zlib
buf = zlib.compress(buf)
-
g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
g.write("#ifndef _DOC_DATA_RAW_H\n")
g.write("#define _DOC_DATA_RAW_H\n")
@@ -27,7 +26,6 @@ def make_doc_header(target, source, env):
g.write("#endif")
-
def make_certs_header(target, source, env):
src = source[0].srcnode().abspath
@@ -39,7 +37,6 @@ def make_certs_header(target, source, env):
import zlib
buf = zlib.compress(buf)
-
g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
g.write("#ifndef _CERTS_RAW_H\n")
g.write("#define _CERTS_RAW_H\n")
@@ -52,11 +49,6 @@ def make_certs_header(target, source, env):
g.write("#endif")
-
-
-
-
-
if (env["tools"] == "yes"):
reg_exporters_inc = '#include "register_exporters.h"\n'
diff --git a/tools/editor/icons/SCsub b/tools/editor/icons/SCsub
index 8845797ea..7010584ea 100644
--- a/tools/editor/icons/SCsub
+++ b/tools/editor/icons/SCsub
@@ -2,6 +2,7 @@
Import('env')
+
def make_editor_icons_action(target, source, env):
import os
@@ -58,9 +59,6 @@ def make_editor_icons_action(target, source, env):
except:
s.write("static const unsigned char* " + var_str + "=NULL;\n\n\n");
-
-
-
s.write("static Ref<ImageTexture> make_icon(const uint8_t* p_png,const uint8_t* p_hidpi_png) {\n")
s.write("\tRef<ImageTexture> texture( memnew( ImageTexture ) );\n")
s.write("\tImage img((editor_is_hidpi()&&p_hidpi_png)?p_hidpi_png:p_png);\n")