#---------- 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):