summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-10-24 23:58:18 (GMT)
committerGitHub <noreply@github.com>2018-10-24 23:58:18 (GMT)
commit9fd92afff8b168973b42d0637aa29511f128aa23 (patch)
treef248ac7ac9e0de0d3f223d50d0a507f0c802e131 /Doc/library
parent7717bf992c586bd4152a83c98af59a592bc8adc1 (diff)
downloadcpython-9fd92afff8b168973b42d0637aa29511f128aa23.zip
cpython-9fd92afff8b168973b42d0637aa29511f128aa23.tar.gz
cpython-9fd92afff8b168973b42d0637aa29511f128aa23.tar.bz2
configparser doc: Properly label ConfigParser attributes (GH-9930)
(cherry picked from commit 890423f79606124f6c54935d21f22375c399e23a) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Diffstat (limited to 'Doc/library')
-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 4abc6aa..4885863 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -691,7 +691,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'``,
@@ -714,7 +714,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
@@ -745,7 +745,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