[Python] Improve Python consistency: Use function_name(…) throughout (PEP8)

This commit is contained in:
practicalswift
2016-02-22 22:39:03 +01:00
parent ada88e104d
commit f6d6585ee0
92 changed files with 382 additions and 382 deletions

View File

@@ -117,7 +117,7 @@ def collect_submodules(common_args, module):
return sorted(list(submodules))
# Print out the command we're about to execute
def printCommand(cmd, outfile=""):
def print_command(cmd, outfile=""):
str = " ".join(cmd)
if outfile != "":
str += " > " + outfile
@@ -138,7 +138,7 @@ def dump_module_api((cmd, extra_dump_args, output_dir, module, quiet, verbose)):
top_level_cmd = cmd + extra_dump_args + ['-module-to-print=%s' % (module)]
if verbose:
printCommand(top_level_cmd, output_file)
print_command(top_level_cmd, output_file)
output_command_result_to_file(top_level_cmd, output_file)
@@ -152,7 +152,7 @@ def dump_module_api((cmd, extra_dump_args, output_dir, module, quiet, verbose)):
submodule_cmd = cmd + extra_dump_args
submodule_cmd = submodule_cmd + ['-module-to-print=%s' % (full_submodule)]
if verbose:
printCommand(submodule_cmd, output_file)
print_command(submodule_cmd, output_file)
output_command_result_to_file(submodule_cmd, output_file)