python - ctl: Comment subsequent non-spaces after value.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - ctl: Comment subsequent non-spaces after value.
Date: 2006-05-07 00:50:27
Message-ID: 20060507005027.CC90886CCA0@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Comment subsequent non-spaces after value.

In cases where trailing non-space data exists, config would introduce a syntax
error:

# foo = bar something that should likely be commented

When 'foo' is set to another value or simply uncommented, it would introduce a
syntax error:

foo = bar something that should likely be commented

So, comment post value non-space to produce something that won't cause an error:

foo = bar #something that should likely be commented

While config does it's best to touch as little as possible, if it does need to
change something, it is important to make sure that it doesn't render an
erroneous configuration file.

Modified Files:
--------------
ctl/src:
config.py (r1.1.1.1 -> r1.2)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/ctl/src/config.py.diff?r1=1.1.1.1&r2=1.2)
ctl/test:
config.py (r1.1.1.1 -> r1.2)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/ctl/test/config.py.diff?r1=1.1.1.1&r2=1.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2006-05-07 01:05:11 pgsql: Use $(LIBS:-lpgport=) rather than $(patsubst -lpgport, , $(LIBS)),
Previous Message Bruce Momjian 2006-05-06 23:35:32 pgsql: Add description: * %Disallow changing DEFAULT expression of a