From 3bf3cdc1cfa03ef913bc7e7b889adf1186579bf6 Mon Sep 17 00:00:00 2001 From: Jaime Frey Date: Tue, 27 Jul 2021 15:52:26 -0500 Subject: [PATCH] Put RawConfigParser in non-strict mode to allow dups. HTCONDOR-521 With the multiple config files of blah.config.d, duplicate keys (one overriding the other) are likely and need to work. --- src/scripts/blah.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/blah.py b/src/scripts/blah.py index 4d1dbf3..c0c9309 100755 --- a/src/scripts/blah.py +++ b/src/scripts/blah.py @@ -29,7 +29,7 @@ def __init__(self, path=None, defaults=None): config += f.read() vfile = StringIO('[%s]\n%s' % (self.header, config)) - super(BlahConfigParser, self).__init__(defaults=defaults) + super(BlahConfigParser, self).__init__(defaults=defaults, strict=False) # TODO: readfp() is replaced by read_file() in Python 3.2+ self.readfp(vfile)