Skip to content

Commit

Permalink
OscConfigParser.py: fix __delitem__
Browse files Browse the repository at this point in the history
Two issues:
- There is no _find() member in ConfigLineOrder. Use _find_section()
  instead
- Use 'key' instead of 'line' as argument for _find_section() since
  'line' is used before assignment.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
  • Loading branch information
dalgaaf committed May 27, 2013
1 parent a5d14bf commit a3cf8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/OscConfigParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __getitem__(self, key):
return section

def __delitem__(self, key):
line = self._find(line)
line = self._find_section(key)
if not line:
raise KeyError(key)
self._lines.remove(line)
Expand Down

0 comments on commit a3cf8e8

Please sign in to comment.