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

2009-02-04 Thread Yannick Gingras
On Tuesday 03 February 2009, Raghuram Devarakonda wrote: > http://bugs.python.org/issue2204 refers to the same issue. Perhaps, > you can upload your patch there in addition to adding any comments. I attached the patch to the ticket. Do you have recommendations on how to solve the uniformity issue

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

2009-02-03 Thread Raghuram Devarakonda
>> 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. http:/

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

2009-02-03 Thread Aahz
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 onc

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

2009-02-02 Thread Yannick Gingras
Greetings Pythonistas, ConfigParser as you most certainly know is a .ini parser included in the Python standard library. It's documentation mentions a DuplicateSectionError but I was puzzled after hunting a bug in our application that this error was not raised when parsing a file with duplicat