diff options
author | fuzzyman <devnull@localhost> | 2010-02-08 00:45:53 +0000 |
---|---|---|
committer | fuzzyman <devnull@localhost> | 2010-02-08 00:45:53 +0000 |
commit | ffef79b899f76d930624ce0ebf628db6cb0b7f88 (patch) | |
tree | 00c4b2e9b31f9bf9052d2201ff5522b77c6f3f35 | |
parent | faa5e00c495c6bad0481a39d80de3a2545a004f6 (diff) | |
download | configobj-ffef79b899f76d930624ce0ebf628db6cb0b7f88.tar.gz |
Handle the case where the deprecated options keyword is used along with *other* keywords.
-rw-r--r-- | configobj.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configobj.py b/configobj.py index 20d92b0..90fad5b 100644 --- a/configobj.py +++ b/configobj.py @@ -1223,6 +1223,9 @@ class ConfigObj(Section): for entry, value in OPTION_DEFAULTS.items(): if entry not in options: options[entry] = value + keyword_value = _options[entry] + if value != keyword_value: + options[entry] = keyword_value # XXXX this ignores an explicit list_values = True in combination # with _inspec. The user should *never* do that anyway, but still... |