From 8a68ff96057ec58e524a3e41a2d8dca7b5d016bc Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 24 Sep 2012 12:15:13 +0900 Subject: Coding style cleanup Fix the following issues reported by pylint: C0321: More than one statement on a single line W0622: Redefining built-in 'name' W0612: Unused variable 'name' W0613: Unused argument 'name' W0102: Dangerous default value 'value' as argument W0105: String statement has no effect Also fixed a few cases of inconsistent indentation. Change-Id: Ie0db839e7c57d576cff12d8c055fe87030d00744 --- subcmds/help.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subcmds/help.py') diff --git a/subcmds/help.py b/subcmds/help.py index 0df3c14b..375d04d2 100644 --- a/subcmds/help.py +++ b/subcmds/help.py @@ -120,8 +120,8 @@ See 'repo help --all' for a complete list of recognized commands. m = asciidoc_hdr.match(para) if m: title = m.group(1) - type = m.group(2) - if type[0] in ('=', '-'): + section_type = m.group(2) + if section_type[0] in ('=', '-'): p = self.heading else: def _p(fmt, *args): @@ -131,7 +131,7 @@ See 'repo help --all' for a complete list of recognized commands. p('%s', title) self.nl() - p('%s', ''.ljust(len(title),type[0])) + p('%s', ''.ljust(len(title),section_type[0])) self.nl() continue -- cgit v1.2.3-54-g00ecf