python - ctl: Comment subsequent non-spaces after value. - Mailing list pgsql-committers

From jwp@pgfoundry.org (James William Pye)
Subject python - ctl: Comment subsequent non-spaces after value.
Date
Msg-id 20060507005027.CC90886CCA0@pgfoundry.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Add description: * %Disallow changing DEFAULT expression of a
Next
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Use $(LIBS:-lpgport=) rather than $(patsubst -lpgport,, $(LIBS)),