[Pythonmac-SIG] sqlite and python
genemartin
martin.laloux at gmail.com
Wed Mar 25 21:50:25 CET 2009
In python 2.5 there is no pysqlite but sqlite3
use for test
try:
from sqlite3 import dbapi2 as sqlite # python 2.5
except:
try:
from pysqlite2 import dbapi2 as sqlite #python < 2.5
except:
print 'This program requires pysqlite2\n',\
'http://initd.org/tracker/pysqlite/'
sys.exit(1)
--
View this message in context: http://www.nabble.com/sqlite-and-python-tp22699806p22710829.html
Sent from the Python - pythonmac-sig mailing list archive at Nabble.com.
More information about the Pythonmac-SIG
mailing list