diff options
author | Ćukasz Langa <lukasz@langa.pl> | 2017-08-24 16:43:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 16:43:53 (GMT) |
commit | a5fab17fc11433b2418f626dc51e8a3d07b198ca (patch) | |
tree | 173aeb5a7491a9bd0956fcbc2d5f8818a7f6fb41 /Doc/library/configparser.rst | |
parent | a6296d34a478b4f697ea9db798146195075d496c (diff) | |
download | cpython-a5fab17fc11433b2418f626dc51e8a3d07b198ca.zip cpython-a5fab17fc11433b2418f626dc51e8a3d07b198ca.tar.gz cpython-a5fab17fc11433b2418f626dc51e8a3d07b198ca.tar.bz2 |
bpo-23835: Restore legacy defaults= behavior for RawConfigParser (#3191)
The fix for bpo-23835 fixed ConfigParser behavior in defaults= handling.
Unfortunately, it caused a backwards compatibility regression with
RawConfigParser objects which allow for non-string values.
This commit restores the legacy behavior for RawConfigParser only.
Diffstat (limited to 'Doc/library/configparser.rst')
-rw-r--r-- | Doc/library/configparser.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index c31a7e9..acca647 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -1213,8 +1213,10 @@ RawConfigParser Objects default_section=configparser.DEFAULTSECT[, \ interpolation]) - Legacy variant of the :class:`ConfigParser` with interpolation disabled - by default and unsafe ``add_section`` and ``set`` methods. + Legacy variant of the :class:`ConfigParser`. It has interpolation + disabled by default and allows for non-string section names, option + names, and values via its unsafe ``add_section`` and ``set`` methods, + as well as the legacy ``defaults=`` keyword argument handling. .. note:: Consider using :class:`ConfigParser` instead which checks types of |