Bug in wikidpad when python minor version is non-integer

2 views
Skip to first unread message

moriarty4

unread,
Oct 31, 2009, 5:10:53 PM10/31/09
to wikidpad-devel
Hi
There is a bug in lib/pwiki/SqliteThin3.py.
At line 97, the statement

pyver = tuple((int(s) for s in platform.python_version_tuple()))


Assumes that python versions are always integers. Unfortunately this
is wrong. The most recent version of Ubuntu linux, 9.10, uses python
version 2.6.4rc2. The tuple returned by python_version_tuple() is
("2", "6", "4rc2"). This breaks wikidpad.

I have made a quick fix by changing the line to read:

pyver = tuple((4 if s == "4rc2" else int(s) for s in
platform.python_version_tuple()))


However you probably want to make a better fix that removes the
assumption that python versions are always integers.

Cheers
Paul

Michael Butscher

unread,
Oct 31, 2009, 5:29:29 PM10/31/09
to wikidpa...@googlegroups.com

The problem is known already and will be fixed in the next version.


Michael

Reply all
Reply to author
Forward
0 new messages