You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +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:
@@ -6,17 +6,19 @@ import sys
|
||||
def is_active():
|
||||
return True
|
||||
|
||||
|
||||
def get_name():
|
||||
return "OSX"
|
||||
|
||||
|
||||
def can_build():
|
||||
|
||||
if (sys.platform == "darwin" or os.environ.has_key("OSXCROSS_ROOT")):
|
||||
return True
|
||||
|
||||
|
||||
return False
|
||||
|
||||
|
||||
def get_opts():
|
||||
|
||||
return [
|
||||
@@ -25,13 +27,13 @@ def get_opts():
|
||||
|
||||
]
|
||||
|
||||
|
||||
def get_flags():
|
||||
|
||||
return [
|
||||
]
|
||||
|
||||
|
||||
|
||||
def configure(env):
|
||||
|
||||
env.Append(CPPPATH=['#platform/osx'])
|
||||
@@ -51,8 +53,6 @@ def configure(env):
|
||||
|
||||
env.Append(CCFLAGS=['-g3', '-Wall', '-DDEBUG_ENABLED', '-DDEBUG_MEMORY_ENABLED'])
|
||||
|
||||
|
||||
|
||||
if (not os.environ.has_key("OSXCROSS_ROOT")):
|
||||
# regular native build
|
||||
if (env["bits"] == "64"):
|
||||
@@ -72,14 +72,12 @@ def configure(env):
|
||||
else:
|
||||
basecmd = root + "/target/bin/i386-apple-" + env["osxcross_sdk"] + "-"
|
||||
|
||||
|
||||
env['CC'] = basecmd + "cc"
|
||||
env['CXX'] = basecmd + "c++"
|
||||
env['AR'] = basecmd + "ar"
|
||||
env['RANLIB'] = basecmd + "ranlib"
|
||||
env['AS'] = basecmd + "as"
|
||||
|
||||
|
||||
env.Append(CPPFLAGS=["-DAPPLE_STYLE_KEYS"])
|
||||
env.Append(CPPFLAGS=['-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DOSX_ENABLED'])
|
||||
env.Append(LIBS=['pthread'])
|
||||
|
||||
Reference in New Issue
Block a user