summaryrefslogtreecommitdiffstats
path: root/Doc/library/configparser.rst
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2017-08-24 16:43:53 (GMT)
committerGitHub <noreply@github.com>2017-08-24 16:43:53 (GMT)
commita5fab17fc11433b2418f626dc51e8a3d07b198ca (patch)
tree173aeb5a7491a9bd0956fcbc2d5f8818a7f6fb41 /Doc/library/configparser.rst
parenta6296d34a478b4f697ea9db798146195075d496c (diff)
downloadcpython-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.rst6
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