moinsetup

Changeset

17:7750259374e6
2010-05-26 Paul Boddie raw files shortlog changelog graph Make configuration setting comment removal more flexible.
moinsetup.py (file)
     1.1 --- a/moinsetup.py	Wed May 26 02:26:41 2010 +0200
     1.2 +++ b/moinsetup.py	Wed May 26 02:32:05 2010 +0200
     1.3 @@ -10,7 +10,7 @@
     1.4  # Regular expressions for editing MoinMoin scripts and configuration files.
     1.5  
     1.6  def compile_definition(name):
     1.7 -    return re.compile(r"^(\s*)#*(%s =).*$" % name, re.MULTILINE)
     1.8 +    return re.compile(r"^(\s*)#*\s*(%s =).*$" % name, re.MULTILINE)
     1.9  
    1.10  moin_cgi_prefix          = re.compile("^#sys\.path\.insert\(0, 'PREFIX.*$", re.MULTILINE)
    1.11  moin_cgi_wikiconfig      = re.compile("^#sys\.path\.insert\(0, '/path/to/wikiconfigdir.*$", re.MULTILINE)