From 4ed12cf825d6afa124cd57ee461b166b46000cb2 Mon Sep 17 00:00:00 2001 From: "Stuart D. Gathman" Date: Tue, 16 Jun 2020 19:40:37 -0400 Subject: [PATCH] config test passes --- Milter/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Milter/config.py b/Milter/config.py index df64b3d..fc32e3a 100644 --- a/Milter/config.py +++ b/Milter/config.py @@ -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):