Skip to content

Commit 2cebfa5

Browse files
committed
Disable interpolation in ConfigParser
Interpolation would interpret % as the start of an interpolation sequence
1 parent 8e72c5c commit 2cebfa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/report_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(self, logger):
107107
self.pgservices = {}
108108
pgservicefile = os.getenv("PGSERVICEFILE", os.path.expanduser("~/.pg_service.conf"))
109109
if os.path.isfile(pgservicefile):
110-
config = configparser.ConfigParser()
110+
config = configparser.ConfigParser(interpolation=None)
111111
config.read(pgservicefile)
112112
for section in config.sections():
113113
self.pgservices[section] = dict(config.items(section))

0 commit comments

Comments
 (0)