Unverified Kaydet (Commit) b3223940 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) GitHub

configparser doc: Properly label ConfigParser attributes (GH-9930)

(cherry picked from commit 890423f7)
Co-authored-by: 's avatarNed Batchelder <ned@nedbatchelder.com>
üst 917efd8d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment