fix sqlite3 import for python 2.4

This commit is contained in:
Daniel Folkinshteyn 2010-03-17 01:55:23 -04:00
parent dbbef9ec43
commit 95aa56c694

View File

@ -48,7 +48,10 @@ import time
#'plugin. Download it at ' \
#'<http://code.google.com/p/pysqlite/>'
import sqlite3
try:
import sqlite3
except:
from pysqlite2 import dbapi2 as sqlite3 # for python2.4
# these are needed cuz we are overriding getdb
import threading