[Python-checkins] configparser doc: Properly label ConfigParser attributes (GH-9930)

Miss Islington (bot) webhook-mailer at python.org
Wed Oct 24 19:58:21 EDT 2018


https://github.com/python/cpython/commit/9fd92afff8b168973b42d0637aa29511f128aa23
commit: 9fd92afff8b168973b42d0637aa29511f128aa23
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-10-24T16:58:18-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 4abc6aa75606..4885863e8ee8 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



More information about the Python-checkins mailing list