config test passes

This commit is contained in:
Stuart D. Gathman
2020-06-16 19:40:37 -04:00
parent c098f9df6b
commit 4ed12cf825
+3 -3
View File
@@ -14,10 +14,10 @@ class MilterConfigParser(ConfigParser):
# which screws up iterating over all options in a section.
# Worse, passing "defaults" with vars= overrides the config file!
# So we roll our own defaults.
def get(self,sect,opt):
if not self.has_option(sect,opt) and opt in self.defaults:
def get(self,sect,opt,raw=False,fallback=None):
if not self.has_option(sect,opt) and not fallback and opt in self.defaults:
return self.defaults[opt]
return ConfigParser.get(self,sect,opt)
return ConfigParser.get(self,sect,opt,raw=raw,fallback=fallback)
def getlist(self,sect,opt):
if self.has_option(sect,opt):