[issue11027] Allow spaces around section header in ConfigParser

Fred L. Drake, Jr. report at bugs.python.org
Thu Jan 27 21:35:12 CET 2011


Fred L. Drake, Jr. <fdrake at acm.org> added the comment:

I doubt anyone is looking for section names with leading or trailing whitespace.

One approach to dealing with this is to provide and sectionxform similar to optionxform.  If we're wrong and someone really is expecting leading or trailing whitespace, they can set that (to str) to cancel out the change in behavior.

While I'd be surprised if anyone relies on this, it is a feature change, no matter how it's implemented, so must wait for 3.3.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11027>
_______________________________________


More information about the Python-bugs-list mailing list