diff options
Diffstat (limited to 'configobj.py')
-rw-r--r-- | configobj.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configobj.py b/configobj.py index 7015c16..3827cee 100644 --- a/configobj.py +++ b/configobj.py @@ -380,11 +380,11 @@ class InterpolationEngine(object): while True: # try the current section first val = current_section.get(key) - if val is not None: + if val is not None and not isinstance(val, Section): break # try "DEFAULT" next val = current_section.get('DEFAULT', {}).get(key) - if val is not None: + if val is not None and not isinstance(val, Section): break # move up to parent and try again # top-level's parent is itself |