[Python-checkins] configparser doc: Properly label ConfigParser attributes (GH-9930)
Miss Islington (bot)
webhook-mailer at python.org
Wed Oct 24 19:56:28 EDT 2018
https://github.com/python/cpython/commit/b3223940091b1ea52b0fd856801d79e2281e5b19
commit: b3223940091b1ea52b0fd856801d79e2281e5b19
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-10-24T16:56:25-07:00
summary:
configparser doc: Properly label ConfigParser attributes (GH-9930)
(cherry picked from commit 890423f79606124f6c54935d21f22375c399e23a)
Co-authored-by: Ned Batchelder <ned at nedbatchelder.com>
files:
M Doc/library/configparser.rst
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index 0bd03b6259ee..4430e39b7c5b 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -695,7 +695,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'``,
@@ -718,7 +718,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
@@ -749,7 +749,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
More information about the Python-checkins
mailing list