jncramp / iniparse

Automatically exported from code.google.com/p/iniparse
Other
0 stars 0 forks source link

Regression in compat.RawConfigParser.remove_option #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create one of the parsers in compat.py with a defaults dictionary.  The 
attached file uses a SafeConfigParser.
2. Add a section to the parser.
3. Attempt to remove the default option from the section created in step 2.

What is the expected output? What do you see instead?
The expected output should be False which is what ConfigParser returns.  
Instead, iniparse throws a KeyError.

What version of the product are you using? On what operating system?
This issue is present in iniparse 0.4.  I am using the python-iniparse library 
on Fedora 18: python-iniparse-0.4-6.fc18.noarch

Please provide any additional information below.
This issue was introduced in revision 141.

A small program is attached to demonstrate the error.

Original issue reported on code.google.com by tawo...@gmail.com on 23 Jul 2013 at 5:24

Attachments: