mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Python] Improve Python consistency: Use function_name(…) throughout (PEP8)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user