cfg#
import compwa_policy.utilities.cfg
Helper functions for formatting .cfg
files.
- format_config(input: Path | TextIOBase | str, output: Path | TextIOBase | str, additional_rules: Iterable[Callable[[str], str]] | None = None) None [source]#
- open_config(definition: Path | TextIOBase | str) ConfigParser [source]#
- write_config(cfg: ConfigParser, output: Path | TextIOBase | str) None [source]#