X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=hippotat%2F__init__.py;fp=hippotat%2F__init__.py;h=60b779f1dcb3253bbe4b9011a1c671004c7d6483;hp=d0cc79902753286e2afa0c254297094e5c73de8d;hb=82302bac58d04aa04390ed0d8baebb15bf79829f;hpb=5510890e40f44f7851829b3bb1e319188e993798 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):