python - lo: Refactor the version parser. - Mailing list pgsql-committers

From jwp@pgfoundry.org (James William Pye)
Subject python - lo: Refactor the version parser.
Date
Msg-id 20071205000637.D7BE617AC8A0@pgfoundry.org
Whole thread Raw
List 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 by date:

Previous
From: jwp@pgfoundry.org (James William Pye)
Date:
Subject: python - fe: Set of changes.
Next
From: h-saito@pgfoundry.org (User H-saito)
Date:
Subject: npgsql - Npgsql2: update the japanese resources.