]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
configparser doc: Properly label ConfigParser attributes (GH-9930)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 Oct 2018 23:58:18 +0000 (16:58 -0700)
committerGitHub <noreply@github.com>
Wed, 24 Oct 2018 23:58:18 +0000 (16:58 -0700)
(cherry picked from commit 890423f79606124f6c54935d21f22375c399e23a)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Doc/library/configparser.rst

index 4abc6aa756062b901239ff10c4ecf1bd490b093c..4885863e8ee8c86dc357bc7f11ca0a61ed31f4f3 100644 (file)
@@ -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