mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-24 14:20:54 +08:00
allow using sqlite from pysqlite2
in case Python was built with an incomplete standard library (missing sqlite3) we do the same thing in IPython history, etc.
This commit is contained in:
parent
67f57ae4aa
commit
65ba875d5b
@ -4,7 +4,12 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
import uuid
|
||||
import sqlite3
|
||||
|
||||
try:
|
||||
import sqlite3
|
||||
except ImportError:
|
||||
# fallback on pysqlite2 if Python was build without sqlite
|
||||
from pysqlite2 import dbapi2 as sqlite3
|
||||
|
||||
from tornado import gen, web
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user