From 82302bac58d04aa04390ed0d8baebb15bf79829f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 2 Apr 2017 11:13:54 +0100 Subject: [PATCH 1/1] comment re comments re --- hippotat/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hippotat/__init__.py b/hippotat/__init__.py index d0cc799..60b779f 100644 --- a/hippotat/__init__.py +++ b/hippotat/__init__.py @@ -405,8 +405,9 @@ def process_cfg_clients(constructor): #---------- startup ---------- def common_startup(process_cfg): - re = regexp.compile('#.*') - cfg.read_string(re.sub('', defcfg)) + # ConfigParser hates #-comments after values + trailingcomments_re = regexp.compile('#.*') + cfg.read_string(trailingcomments_re.sub('', defcfg)) need_defcfg = True def readconfig(pathname, mandatory=True): -- 2.30.2