diff options
Diffstat (limited to 'subcmds/help.py')
-rw-r--r-- | subcmds/help.py | 6 |
1 files changed, 3 insertions, 3 deletions
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. | |||
120 | m = asciidoc_hdr.match(para) | 120 | m = asciidoc_hdr.match(para) |
121 | if m: | 121 | if m: |
122 | title = m.group(1) | 122 | title = m.group(1) |
123 | type = m.group(2) | 123 | section_type = m.group(2) |
124 | if type[0] in ('=', '-'): | 124 | if section_type[0] in ('=', '-'): |
125 | p = self.heading | 125 | p = self.heading |
126 | else: | 126 | else: |
127 | def _p(fmt, *args): | 127 | def _p(fmt, *args): |
@@ -131,7 +131,7 @@ See 'repo help --all' for a complete list of recognized commands. | |||
131 | 131 | ||
132 | p('%s', title) | 132 | p('%s', title) |
133 | self.nl() | 133 | self.nl() |
134 | p('%s', ''.ljust(len(title),type[0])) | 134 | p('%s', ''.ljust(len(title),section_type[0])) |
135 | self.nl() | 135 | self.nl() |
136 | continue | 136 | continue |
137 | 137 | ||