From 6d08538dd474a918a5ff09f66ba2b5b291519fcb Mon Sep 17 00:00:00 2001 From: fuzzyman Date: Sun, 22 Nov 2009 00:35:27 +0000 Subject: Additional comments. --- configobj.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.1