Skip to content

Commit

Permalink
Fix erroneous lowercase of DEFAULT section during keyword parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudveron committed Aug 20, 2019
1 parent 0ecfa36 commit b566a7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/extconfig.py
Expand Up @@ -79,7 +79,8 @@ def unset_multi(self, kws):
except Exception:
section = "DEFAULT"
option = kw
section = section.lower()
if 'DEFAULT' not in section:
section = section.lower()
option = option.lower()
try:
del cd[section][option]
Expand Down Expand Up @@ -206,7 +207,8 @@ def set_multi(self, kws, eval=False, validation=True):
if "=" not in kw:
raise ex.excError("malformed kw expression: %s: no '='" % kw)
keyword, value = kw.split("=", 1)
keyword = keyword.lower()
if 'DEFAULT' not in keyword:
keyword = keyword.lower()
if keyword[-1] == "-":
op = "remove"
keyword = keyword[:-1]
Expand Down

0 comments on commit b566a7a

Please sign in to comment.