diff options
author | Conley Owens <cco3@android.com> | 2012-10-09 14:29:46 -0700 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-10-09 14:29:46 -0700 |
commit | 3a6cd4200e42fbb5a21b3fb8d3c9738c0320cc63 (patch) | |
tree | 68ae5094d6530453887fb35a73fd5fa55f55a034 /subcmds/help.py | |
parent | 25f17682ca4ecd8acc887462d4bebc7c429cf110 (diff) | |
parent | 8a68ff96057ec58e524a3e41a2d8dca7b5d016bc (diff) | |
download | git-repo-3a6cd4200e42fbb5a21b3fb8d3c9738c0320cc63.tar.gz |
Merge "Coding style cleanup"
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 | ||