summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-10-24 23:47:01 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-10-24 23:47:01 (GMT)
commit890423f79606124f6c54935d21f22375c399e23a (patch)
tree34edccadcb676d90804cdd2135bd48d80d0c8a85
parent78401f7156034f713170b8e87b51d23ebdc3bdfa (diff)
downloadcpython-890423f79606124f6c54935d21f22375c399e23a.zip
cpython-890423f79606124f6c54935d21f22375c399e23a.tar.gz
cpython-890423f79606124f6c54935d21f22375c399e23a.tar.bz2
configparser doc: Properly label ConfigParser attributes (GH-9930)
-rw-r--r--Doc/library/configparser.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index 0ae466e..47d6172 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -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'``,
@@ -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
@@ -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