Permalink
Browse files

try to fallback to pysqlite2.dbapi2 as sqlite3

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...
1 parent 1f24243 commit 09c5f96bd6a308a79167276798010adf45ff6127 @skyl committed Dec 24, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 IPython/core/history.py
@@ -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

0 comments on commit 09c5f96

Please sign in to comment.