chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5510890
)
comment re comments re
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 2 Apr 2017 10:13:54 +0000
(11:13 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 2 Apr 2017 10:13:54 +0000
(11:13 +0100)
hippotat/__init__.py
patch
|
blob
|
history
diff --git
a/hippotat/__init__.py
b/hippotat/__init__.py
index d0cc79902753286e2afa0c254297094e5c73de8d..60b779f1dcb3253bbe4b9011a1c671004c7d6483 100644
(file)
--- 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):