Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
3608fb0d
Commit
3608fb0d
authored
Oct 06, 2015
by
Giorgos Korfiatis
Browse files
use pysqlite2 if available
parent
50dc9807
Changes
1
Hide whitespace changes
Inline
Side-by-side
agkyra/syncer/database.py
View file @
3608fb0d
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment