diff options
author | fuzzyman <devnull@localhost> | 2009-11-22 00:35:27 +0000 |
---|---|---|
committer | fuzzyman <devnull@localhost> | 2009-11-22 00:35:27 +0000 |
commit | 6d08538dd474a918a5ff09f66ba2b5b291519fcb (patch) | |
tree | 9b0fd84b397a818372347dd99fc1112befd8ffb6 | |
parent | 95d7cadd7167891c724bafdd9c9828dc640082e6 (diff) | |
download | configobj-6d08538dd474a918a5ff09f66ba2b5b291519fcb.tar.gz |
Additional comments.
-rw-r--r-- | configobj.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configobj.py b/configobj.py index 74a376b..7377cc9 100644 --- a/configobj.py +++ b/configobj.py @@ -2260,6 +2260,10 @@ class ConfigObj(Section): ret_false = False # if ret_false and preserve_errors and out: + # If we are preserving errors, but all + # the failures are from missing sections / values + # then we can return False. Otherwise there is a + # real failure that we need to preserve. ret_false = not any(out.values()) if ret_true: return True |