diff roundup/backends/back_sqlite.py @ 8081:95f91b6f0386

issue2551343 - Remove support for PySQLite and sqlite v2. It is unmaintained and sqlite3 is used which is the default for a Python distribution.
author John Rouillard <rouilj@ieee.org>
date Sat, 13 Jul 2024 18:52:55 -0400
parents e3975f679bf1
children
line wrap: on
line diff
--- a/roundup/backends/back_sqlite.py	Sat Jul 13 18:27:11 2024 -0400
+++ b/roundup/backends/back_sqlite.py	Sat Jul 13 18:52:55 2024 -0400
@@ -31,14 +31,7 @@
     import sqlite3 as sqlite
     sqlite_version = 3
 except ImportError:
-    try:
-        from pysqlite2 import dbapi2 as sqlite
-        if sqlite.version_info < (2, 1, 0):
-            raise ValueError('pysqlite2 minimum version is 2.1.0+ '
-                             '- %s found' % sqlite.version)
-        sqlite_version = 2
-    except ImportError:
-        raise ValueError("Unable to import sqlite3 or sqlite 2.")
+    raise ValueError("Unable to import sqlite3.")
 
 
 def db_exists(config):

Roundup Issue Tracker: http://roundup-tracker.org/