projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c30d3c2
)
Import pysqlite2 when available instead of sqlite3 in backend.
author
Antony Chazapis
<chazapis@gmail.com>
Fri, 16 Dec 2011 12:45:57 +0000
(14:45 +0200)
committer
Antony Chazapis
<chazapis@gmail.com>
Fri, 16 Dec 2011 12:45:57 +0000
(14:45 +0200)
pithos/backends/lib/sqlite/dbwrapper.py
patch
|
blob
|
history
diff --git
a/pithos/backends/lib/sqlite/dbwrapper.py
b/pithos/backends/lib/sqlite/dbwrapper.py
index
17e089d
..
388f31a
100644
(file)
--- a/
pithos/backends/lib/sqlite/dbwrapper.py
+++ b/
pithos/backends/lib/sqlite/dbwrapper.py
@@
-31,7
+31,11
@@
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-import sqlite3
+try:
+ from pysqlite2 import dbapi2 as sqlite3
+except ImportError:
+ import sqlite3
+
class DBWrapper(object):
"""Database connection wrapper."""