Example:
[stanza_with_something]
key = value
[empty_stanza]
Reproduce:
import addonfactory_splunk_conf_parser_lib as conf_parser
conf = """
[stanza_with_something]
key = value
[empty_stanza]
"""
parser = conf_parser.TABConfigParser()
parser.read_string(conf)
print(parser.item_dict())
Current behaviour:
{'stanza_with_something': {'key': 'value'}}
Potential (?) behaviour:
{'empty_stanza': {}, 'stanza_with_something': {'key': 'value'}}