1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

style: Start applying PEP8 to Python files, indentation issues

Done with `autopep8 --select=E1`, fixes:

- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
This commit is contained in:
Rémi Verschelde
2016-11-02 22:26:55 +01:00
parent 7c92b401f1
commit 561c1f17a1
84 changed files with 6637 additions and 6637 deletions

View File

@@ -22,21 +22,21 @@ f.write("\n\n\n");
for x in pixmaps:
var_str=x[:-4]+"_png";
var_str=x[:-4]+"_png";
f.write("static const unsigned char "+ var_str +"[]={\n");
f.write("static const unsigned char "+ var_str +"[]={\n");
pngf=open(x,"rb");
pngf=open(x,"rb");
b=pngf.read(1);
while(len(b)==1):
f.write(hex(ord(b)))
b=pngf.read(1);
if (len(b)==1):
f.write(",")
b=pngf.read(1);
while(len(b)==1):
f.write(hex(ord(b)))
b=pngf.read(1);
if (len(b)==1):
f.write(",")
f.write("\n};\n\n\n");
pngf.close();
f.write("\n};\n\n\n");
pngf.close();
#Generate shaders block
@@ -48,25 +48,25 @@ f.write("\n\n\n");
for x in shaders:
var_str=x[:-4]+"_shader_code";
var_str=x[:-4]+"_shader_code";
f.write("static const char *"+ var_str +"=\n");
f.write("static const char *"+ var_str +"=\n");
sf=open(x,"rb");
sf=open(x,"rb");
b=sf.readline();
while(b!=""):
if (b.endswith("\r\n")):
b=b[:-2]
if (b.endswith("\n")):
b=b[:-1]
f.write(" \""+b)
b=sf.readline();
if (b!=""):
f.write("\"\n")
b=sf.readline();
while(b!=""):
if (b.endswith("\r\n")):
b=b[:-2]
if (b.endswith("\n")):
b=b[:-1]
f.write(" \""+b)
b=sf.readline();
if (b!=""):
f.write("\"\n")
f.write("\";\n\n\n");
sf.close();
f.write("\";\n\n\n");
sf.close();
f.close();