Disable config parser interpolation with % (#2455)

This commit is contained in:
Veronica Berglyd Olsen
2025-07-06 17:29:19 +02:00
parent 5ee362dcf4
commit 3149e7ec0d
2 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -680,11 +680,12 @@ class NWConfigParser(ConfigParser):
"""Common: Adapted Config Parser
This is a subclass of the standard config parser that adds type safe
helper functions, and support for lists.
helper functions, and support for lists. It also turns off
interpolation, which would require % symbols to be escaped (#2455).
"""
def __init__(self) -> None:
super().__init__()
super().__init__(interpolation=None)
return
def rdStr(self, section: str, option: str, default: str) -> str: