Simplify heading capitalization in shell's HelpFormatter.

Removed redundant expression for capitalizing the heading
in HelpFormatter.

Change-Id: I063960f6bb18486ce034ec2ae03b26cf8d63716f
This commit is contained in:
Vadim Hmyrov
2016-12-20 16:07:19 +02:00
parent 430ac0e548
commit 60fb57b94a

View File

@@ -408,9 +408,7 @@ class IronicShell(object):
class HelpFormatter(argparse.HelpFormatter):
def start_section(self, heading):
# Title-case the headings
heading = '%s%s' % (heading[0].upper(), heading[1:])
super(HelpFormatter, self).start_section(heading)
super(HelpFormatter, self).start_section(heading.capitalize())
def main():