Skip to content

Commit

Permalink
Put RawConfigParser in non-strict mode to allow dups. HTCONDOR-521
Browse files Browse the repository at this point in the history
With the multiple config files of blah.config.d, duplicate keys (one
overriding the other) are likely and need to work.
  • Loading branch information
JaimeFrey committed Jul 27, 2021
1 parent 13bf79c commit 3bf3cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/blah.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3bf3cdc

Please sign in to comment.