[Python-checkins] cpython (2.6): Closes #11786: ConfigParser.[Raw]ConfigParser optionxform().

lukasz.langa python-checkins at python.org
Thu Apr 28 17:41:24 CEST 2011


http://hg.python.org/cpython/rev/c7ce67c9237a
changeset:   69670:c7ce67c9237a
branch:      2.6
parent:      69410:4bd47815e6c5
user:        Łukasz Langa <lukasz at langa.pl>
date:        Thu Apr 28 17:27:59 2011 +0200
summary:
  Closes #11786: ConfigParser.[Raw]ConfigParser optionxform().

files:
  Doc/library/configparser.rst |  12 +++++++-----
  1 files changed, 7 insertions(+), 5 deletions(-)


diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -79,9 +79,12 @@
    The basic configuration object.  When *defaults* is given, it is initialized
    into the dictionary of intrinsic defaults.  When *dict_type* is given, it will
    be used to create the dictionary objects for the list of sections, for the
-   options within a section, and for the default values. This class does not
+   options within a section, and for the default values.  This class does not
    support the magical interpolation behavior.
 
+   All option names are passed through the :meth:`optionxform` method.  Its
+   default implementation converts option names to lower case.
+
    .. versionadded:: 2.3
 
    .. versionchanged:: 2.6
@@ -98,10 +101,9 @@
    *defaults*.
 
    All option names used in interpolation will be passed through the
-   :meth:`optionxform` method just like any other option name reference.  For
-   example, using the default implementation of :meth:`optionxform` (which converts
-   option names to lower case), the values ``foo %(bar)s`` and ``foo %(BAR)s`` are
-   equivalent.
+   :meth:`optionxform` method just like any other option name reference.  Using
+   the default implementation of :meth:`optionxform`, the values ``foo %(bar)s``
+   and ``foo %(BAR)s`` are equivalent.
 
 
 .. class:: SafeConfigParser([defaults[, dict_type]])

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list