Issue 32 in iniparse: Regression in compat.RawConfigParser.remove_option

2 views
Skip to first unread message

inip...@googlecode.com

unread,
Jul 23, 2013, 1:24:58 PM7/23/13
to iniparse...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 32 by tawo...@gmail.com: Regression in
compat.RawConfigParser.remove_option
http://code.google.com/p/iniparse/issues/detail?id=32

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.



Attachments:
parsers.py 481 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages