You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConfigParser doesn't prevent "manually" adding a section named DEFAULT;
however, doing so creates a duplicate, inaccessible [DEFAULT] section in
the config file:
----
It's an easy task for the bug day unless you can provide a patch and an
unit test earlier.
draghuram commented on Jan 10, 2008
draghurammannequin
Mannequin
More actions
Please see cfgparser.diff for the fix. It has tests and doc change.
draghuram commented on Jan 10, 2008
draghurammannequin
Mannequin
More actions
I should add that the patch disallows not only 'DEFAULT' but all other
variants such as "Default" and "default". I am not entirely sure if my
description of this behaviour as "DEFAULT or any of it's
case-insensitive variants".
Activity
tlesher commentedon Jan 10, 2008
ConfigParser doesn't prevent "manually" adding a section named DEFAULT;
however, doing so creates a duplicate, inaccessible [DEFAULT] section in
the config file:
----
[DEFAULT]
----
It seems that the correct thing to do would be to disallow
add_section('DEFAULT').
gvanrossum commentedon Jan 10, 2008
Care to provide a patch?
Otherwise this may be a good bug day candidate. The next one's Jan 19.
tiran commentedon Jan 10, 2008
It's an easy task for the bug day unless you can provide a patch and an
unit test earlier.
draghuram commentedon Jan 10, 2008
Please see cfgparser.diff for the fix. It has tests and doc change.
draghuram commentedon Jan 10, 2008
I should add that the patch disallows not only 'DEFAULT' but all other
variants such as "Default" and "default". I am not entirely sure if my
description of this behaviour as "DEFAULT or any of it's
case-insensitive variants".
humitos commentedon Feb 23, 2008
I tested the patch and works very well. I modified "Misc/NEWS" file
beacuse the change wasn't reported and I uploaded diff file
(NEWS.diff).
facundobatista commentedon Feb 23, 2008
Applied in r60976. Thank you all!