This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wolfmanx
Recipients wolfmanx
Date 2012-12-30.17:12:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356887573.11.0.450967441519.issue16820@psf.upfronthosting.co.za>
In-reply-to
Content
configparser.ConfigParser.clean() always fails:

    >>> cfg = configparser.ConfigParser()
    >>> if not hasattr(configparser.ConfigParser, 'clear'):
    ...     configparser.ConfigParser.clear = configparser_clear_compat
    >>> cfg.clear() #doctest: +ELLIPSIS
    Traceback (most recent call last):
    ...
    ValueError: Cannot remove the default section.

configparser.ConfigParser.update() overwrites all sections except DEFAULT instead of updating them.

See attached test file-
History
Date User Action Args
2012-12-30 17:12:53wolfmanxsetrecipients: + wolfmanx
2012-12-30 17:12:53wolfmanxsetmessageid: <1356887573.11.0.450967441519.issue16820@psf.upfronthosting.co.za>
2012-12-30 17:12:53wolfmanxlinkissue16820 messages
2012-12-30 17:12:53wolfmanxcreate