diff options
author | fuzzyman <devnull@localhost> | 2010-02-27 18:39:48 +0000 |
---|---|---|
committer | fuzzyman <devnull@localhost> | 2010-02-27 18:39:48 +0000 |
commit | 6e2b06158118d43382f201ef55bd1a9664283933 (patch) | |
tree | f80c8952ade56469ec749b2ed64fdf47d8b16d14 /configobj.py | |
parent | a1a9c089da21fa3cd511ebfef316aa70f44b1c08 (diff) | |
download | configobj-6e2b06158118d43382f201ef55bd1a9664283933.tar.gz |
Test and fix for interpolation matching a section name.
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 |