You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +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:
@@ -545,7 +545,7 @@ def make_html_class(node):
|
|||||||
method_table.attrib["class"]="method_list";
|
method_table.attrib["class"]="method_list";
|
||||||
|
|
||||||
for m in list(methods):
|
for m in list(methods):
|
||||||
# li = ET.SubElement(div2, "li")
|
#li = ET.SubElement(div2, "li")
|
||||||
method_table.append( make_method_def(node.attrib["name"],m,False) )
|
method_table.append( make_method_def(node.attrib["name"],m,False) )
|
||||||
|
|
||||||
events = node.find("signals")
|
events = node.find("signals")
|
||||||
@@ -558,7 +558,7 @@ def make_html_class(node):
|
|||||||
event_table.attrib["class"]="method_list";
|
event_table.attrib["class"]="method_list";
|
||||||
|
|
||||||
for m in list(events):
|
for m in list(events):
|
||||||
# li = ET.SubElement(div2, "li")
|
#li = ET.SubElement(div2, "li")
|
||||||
event_table.append( make_method_def(node.attrib["name"],m,False,True) )
|
event_table.append( make_method_def(node.attrib["name"],m,False,True) )
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ def make_method(
|
|||||||
m,
|
m,
|
||||||
declare,
|
declare,
|
||||||
event=False,
|
event=False,
|
||||||
):
|
):
|
||||||
|
|
||||||
s = ' * '
|
s = ' * '
|
||||||
ret_type = 'void'
|
ret_type = 'void'
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ def make_method(
|
|||||||
cname,
|
cname,
|
||||||
event=False,
|
event=False,
|
||||||
pp=None
|
pp=None
|
||||||
):
|
):
|
||||||
|
|
||||||
if (declare or pp==None):
|
if (declare or pp==None):
|
||||||
t = '- '
|
t = '- '
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ files = [
|
|||||||
'godot_main_osx.mm',
|
'godot_main_osx.mm',
|
||||||
'audio_driver_osx.cpp',
|
'audio_driver_osx.cpp',
|
||||||
'sem_osx.cpp',
|
'sem_osx.cpp',
|
||||||
# 'context_gl_osx.cpp',
|
# 'context_gl_osx.cpp',
|
||||||
'dir_access_osx.mm',
|
'dir_access_osx.mm',
|
||||||
'joystick_osx.cpp',
|
'joystick_osx.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
env.Program('#bin/godot',files)
|
env.Program('#bin/godot',files)
|
||||||
|
|||||||
Reference in New Issue
Block a user