]> granicus.if.org Git - python/commit
bpo-23835: Restore legacy defaults= behavior for RawConfigParser (#3191)
authorŁukasz Langa <lukasz@langa.pl>
Thu, 24 Aug 2017 16:43:53 +0000 (09:43 -0700)
committerGitHub <noreply@github.com>
Thu, 24 Aug 2017 16:43:53 +0000 (09:43 -0700)
commita5fab17fc11433b2418f626dc51e8a3d07b198ca
tree173aeb5a7491a9bd0956fcbc2d5f8818a7f6fb41
parenta6296d34a478b4f697ea9db798146195075d496c
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.
Doc/library/configparser.rst
Lib/configparser.py
Lib/test/test_configparser.py