mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-25 18:10:44 +01:00
fix sqlite3 import for python 2.4
This commit is contained in:
parent
dbbef9ec43
commit
95aa56c694
@ -48,7 +48,10 @@ import time
|
|||||||
#'plugin. Download it at ' \
|
#'plugin. Download it at ' \
|
||||||
#'<http://code.google.com/p/pysqlite/>'
|
#'<http://code.google.com/p/pysqlite/>'
|
||||||
|
|
||||||
|
try:
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
except:
|
||||||
|
from pysqlite2 import dbapi2 as sqlite3 # for python2.4
|
||||||
|
|
||||||
# these are needed cuz we are overriding getdb
|
# these are needed cuz we are overriding getdb
|
||||||
import threading
|
import threading
|
||||||
|
Loading…
x
Reference in New Issue
Block a user