Обсуждение: python - ctl: Comment subsequent non-spaces after value.

Поиск
Список
Период
Сортировка

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

От
jwp@pgfoundry.org (James William Pye)
Дата:
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)