Skip to content

Commit

Permalink
Simplify a list creation in OptionParser()
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Nov 10, 2021
1 parent 62f5270 commit bf7f703
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pylint/config/option_parser.py
Expand Up @@ -24,8 +24,7 @@ def format_option_help(self, formatter=None):
formatter = self.formatter
outputlevel = getattr(formatter, "output_level", 0)
formatter.store_option_strings(self)
result = []
result.append(formatter.format_heading("Options"))
result = [formatter.format_heading("Options")]
formatter.indent()
if self.option_list:
result.append(optparse.OptionContainer.format_option_help(self, formatter))
Expand Down

0 comments on commit bf7f703

Please sign in to comment.