Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py

Issue 2064313003: Rename files in webkitpy/tool to have underscores between words (for consistency). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/helpcommand.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
similarity index 93%
rename from third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/helpcommand.py
rename to third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
index f3bfa2139cd74659cf5953d22d490b2899be474b..e4dce75bb11213fc572afba52c101037919ef01c 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/helpcommand.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
@@ -57,10 +57,10 @@ class HelpCommand(Command):
else:
epilog = "Common %prog commands:\n"
relevant_commands = filter(self._tool.should_show_in_main_help, self._tool.commands)
- longest_name_length = max(map(lambda command: len(command.name), relevant_commands))
+ longest_name_length = max(len(command.name) for command in relevant_commands)
relevant_commands.sort(lambda a, b: cmp(a.name, b.name))
- command_help_texts = map(lambda command: " %s %s\n" % (
- command.name.ljust(longest_name_length), command.help_text), relevant_commands)
+ command_help_texts = [" %s %s\n" % (command.name.ljust(longest_name_length), command.help_text)
+ for command in relevant_commands]
epilog += "%s\n" % "".join(command_help_texts)
epilog += "See '%prog help --all-commands' to list all commands.\n"
epilog += "See '%prog help COMMAND' for more information on a specific command.\n"

Powered by Google App Engine
This is Rietveld 408576698