config_parse.py: use a `_YamlConfigParser` object a single time
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 29 May 2020 19:30:52 +0000 (15:30 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 29 May 2020 19:30:52 +0000 (15:30 -0400)
commitc8270369889990a62c65778bc88f77406597e758
tree02d692761fccb470d319fa3b9cf918a28e837f6d
parentace614f2223ddeef454687d4014681a5e1a9a379
config_parse.py: use a `_YamlConfigParser` object a single time

This patch changes `_YamlConfigParser` so that you can only use it once:
the object parses the file on construction, and then makes the
configuration object available through its `config` property.

Because you can't parse another file with the same parser, we don't need
to care about any stale state.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/config_parse.py
This page took 0.030386 seconds and 4 git commands to generate.