Commits

Mike Bayer committed 4883048

added import for pysqlite1

  • Participants
  • Parent commits fd2bf7d

Comments (0)

Files changed (1)

File lib/sqlalchemy/databases/sqlite.py

 try:
     from pysqlite2 import dbapi2 as sqlite
 except:
-    sqlite = None
+    try:
+        sqlite = __import__('sqlite') # skip ourselves
+    except:
+        sqlite = None
 
 class SLNumeric(sqltypes.Numeric):
     def get_col_spec(self):