Skip to content
Snippets Groups Projects
Commit 3608fb0d authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

use pysqlite2 if available

parent 50dc9807
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import time
import sqlite3
try:
import pysqlite2.dbapi2 as sqlite3
except ImportError:
import sqlite3
import json
import logging
import random
......@@ -26,6 +29,8 @@ from agkyra.syncer import common, utils
logger = logging.getLogger(__name__)
logger.debug("sqlite3.version = %s" % sqlite3.version)
logger.debug("sqlite3.sqlite_version = %s" % sqlite3.sqlite_version)
thread_local_data = threading.local()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment