Skip to content

Commit

Permalink
configparser doc: Properly label ConfigParser attributes (pythonGH-9930)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat authored and vstinner committed Oct 24, 2018
1 parent 78401f7 commit 890423f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ More advanced customization may be achieved by overriding default values of
these parser attributes. The defaults are defined on the classes, so they may
be overridden by subclasses or by attribute assignment.

.. attribute:: BOOLEAN_STATES
.. attribute:: ConfigParser.BOOLEAN_STATES

By default when using :meth:`~ConfigParser.getboolean`, config parsers
consider the following values ``True``: ``'1'``, ``'yes'``, ``'true'``,
Expand All @@ -686,7 +686,7 @@ be overridden by subclasses or by attribute assignment.
Other typical Boolean pairs include ``accept``/``reject`` or
``enabled``/``disabled``.

.. method:: optionxform(option)
.. method:: ConfigParser.optionxform(option)

This method transforms option names on every read, get, or set
operation. The default converts the name to lowercase. This also
Expand Down Expand Up @@ -717,7 +717,7 @@ be overridden by subclasses or by attribute assignment.
>>> list(custom['Section2'].keys())
['AnotherKey']

.. attribute:: SECTCRE
.. attribute:: ConfigParser.SECTCRE

A compiled regular expression used to parse section headers. The default
matches ``[section]`` to the name ``"section"``. Whitespace is considered
Expand Down

0 comments on commit 890423f

Please sign in to comment.