Skip to content

Commit

Permalink
try to fallback to pysqlite2.dbapi2 as sqlite3
Browse files Browse the repository at this point in the history
for situations where Python is built without sqlite3 and
can not easily be changed, it would be nice to still be
able to get history with pysqlite2.
  • Loading branch information
skyl committed Dec 24, 2012
1 parent 1f24243 commit 09c5f96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion IPython/core/history.py
Expand Up @@ -20,7 +20,10 @@
try:
import sqlite3
except ImportError:
sqlite3 = None
try:
from pysqlite2 import dbapi2 as sqlite3
except ImportError:
sqlite3 = None
import threading

# Our own packages
Expand Down

0 comments on commit 09c5f96

Please sign in to comment.