New submission from Wolfgang Scherer: 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- ---------- components: Library (Lib) files: bug_configparser.py messages: 178588 nosy: wolfmanx priority: normal severity: normal status: open title: configparser.ConfigParser.clean and .update bugs type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file28493/bug_configparser.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16820> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com