1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

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.
This commit is contained in:
Rémi Verschelde
2016-11-02 22:29:36 +01:00
parent e259bf8bbb
commit a7389217f8
50 changed files with 111 additions and 193 deletions

View File

@@ -9,9 +9,11 @@ import string
def is_active():
return True
def get_name():
return "WinRT"
def can_build():
if (os.name == "nt"):
# building natively on windows!
@@ -19,9 +21,11 @@ def can_build():
return True
return False
def get_opts():
return []
def get_flags():
return []
@@ -71,7 +75,6 @@ def configure(env):
env.Append(CCFLAGS=['-g', '-pg'])
env.Append(LINKFLAGS=['-pg'])
env['ENV'] = os.environ;
# fix environment for windows phone 8.1
env['ENV']['WINDOWSPHONEKITDIR'] = env['ENV']['WINDOWSPHONEKITDIR'].replace("8.0", "8.1") # wtf
@@ -87,7 +90,6 @@ def configure(env):
env.Append(LIBPATH=['#platform/winrt/x64/lib'])
if (env["target"] == "release"):
env.Append(CCFLAGS=['/O2'])
@@ -110,7 +112,6 @@ def configure(env):
env.Append(CCFLAGS=['-g', '-pg'])
env.Append(LINKFLAGS=['-pg'])
env.Append(CCFLAGS=string.split('/MP /GS /wd"4453" /wd"28204" /Zc:wchar_t /Gm- /Od /fp:precise /D "_UNICODE" /D "UNICODE" /D "WINAPI_FAMILY=WINAPI_FAMILY_APP" /errorReport:prompt /WX- /Zc:forScope /RTC1 /Gd /MDd /EHsc /nologo'))
env.Append(CXXFLAGS=string.split('/ZW'))
env.Append(CCFLAGS=['/AI', os.environ['VCINSTALLDIR'] + '\\vcpackages', '/AI', os.environ['WINDOWSSDKDIR'] + '\\References\\CommonConfiguration\\Neutral'])
@@ -118,12 +119,10 @@ def configure(env):
env['ENV'] = os.environ;
env["PROGSUFFIX"] = "." + arch + env["PROGSUFFIX"]
env["OBJSUFFIX"] = "." + arch + env["OBJSUFFIX"]
env["LIBSUFFIX"] = "." + arch + env["LIBSUFFIX"]
#env.Append(CCFLAGS=['/Gd','/GR','/nologo', '/EHsc'])
#env.Append(CXXFLAGS=['/TP', '/ZW'])
#env.Append(CPPFLAGS=['/DMSVC', '/GR', ])