[Python-Dev] [patch] Duplicate sections detection in ConfigParser

Aahz aahz at pythoncraft.com
Tue Feb 3 17:44:25 CET 2009


On Tue, Feb 03, 2009, Yannick Gingras wrote:
>
> The attached patch is compatible with both the 2.x and the 3.x
> branches; it adds a `unique_sects` parameter to the constructor of
> RawConfigParser and a test in the parser loop that raises
> DuplicateSectionError if a section is seen more then once and that
> unique_sects is True.

Please go ahead and post the patch to bugs.python.org; it can always be
revised later and this ensures that we have a record.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.


More information about the Python-Dev mailing list