python - lo: Refactor the version parser.

Поиск
Список
Период
Сортировка
От jwp@pgfoundry.org (James William Pye)
Тема python - lo: Refactor the version parser.
Дата
Msg-id 20071205000637.D7BE617AC8A0@pgfoundry.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Refactor the version parser.

Relocate the parsing code into split() and make it so that split returns None in
cases where the piece of information is absent. This later proves useful for
general comparisons: "8" is "8.1" or "8.2" or "8.3". (pg_tin uses this for
version selectivity; pg_tin -V 8 com psql -c 'SELECT version()' # select 8.x)
(need to add less than and greater than methods still)

Modified Files:
--------------
    lo/postgresql/utility:
        version.py (r1.2 -> r1.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/lo/postgresql/utility/version.py.diff?r1=1.2&r2=1.3)

В списке pgsql-committers по дате отправления:

Предыдущее
От: jwp@pgfoundry.org (James William Pye)
Дата:
Сообщение: python - fe: Set of changes.
Следующее
От: h-saito@pgfoundry.org (User H-saito)
Дата:
Сообщение: npgsql - Npgsql2: update the japanese resources.