[issue7005] ConfigParser does not handle options without values

Dwayne Bailey report at bugs.python.org
Thu Aug 26 13:29:06 CEST 2010


Dwayne Bailey <dwayne+pythonbugs at translate.org.za> added the comment:

This is causing a regression in our code.

Previously when we write out our INI file for an entry that has a value of None we saw the following:
value = None

These are now stored as:
value

This is now causing a traceback in our code.

But interestingly I haven't changed anything in our initialisation of ConfigParser, I would have assumed that I need to set allow_no_value for this to work in the new way that MySQL expects.

I would have expected everything to work as it currently does in 2.6 unless I specifically request

You can see the traceback of Virtaal under Python 2. in this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=622061

----------
nosy: +dwayne

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


More information about the Python-bugs-list mailing list