Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 09c5f96bd6a308a79167276798010adf45ff6127 1 parent 1f24243
@skyl authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 IPython/core/
5 IPython/core/
@@ -20,7 +20,10 @@
import sqlite3
except ImportError:
- sqlite3 = None
+ try:
+ from pysqlite2 import dbapi2 as sqlite3
+ except ImportError:
+ sqlite3 = None
import threading
# Our own packages
Please sign in to comment.
Something went wrong with that request. Please try again.