diff --git a/IPython/core/history.py b/IPython/core/history.py index 558e517..e840200 100644 --- a/IPython/core/history.py +++ b/IPython/core/history.py @@ -20,7 +20,10 @@ import re try: import sqlite3 except ImportError: - sqlite3 = None + try: + from pysqlite2 import dbapi2 as sqlite3 + except ImportError: + sqlite3 = None import threading # Our own packages