Skip to content

Commit

Permalink
Refactor - Rename _ini_format_section directly to format_section
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas authored and PCManticore committed Mar 9, 2019
1 parent b2a77e4 commit 5073ebd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pylint/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def _format_option_value(optdict, value):
return value


def _ini_format_section(stream, section, options, doc=None):
def format_section(stream, section, options, doc=None):
"""format an options section using the INI format"""
if doc:
print(_comment(doc), file=stream)
Expand Down Expand Up @@ -344,6 +344,3 @@ def _ini_format(stream, options):
# remove trailing ',' from last element of the list
value = value[:-1]
print("%s=%s" % (optname, value), file=stream)


format_section = _ini_format_section

0 comments on commit 5073ebd

Please sign in to comment.