From c2739867113a2b650db300c03ef06cf18dcee3f4 Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Wed, 3 Nov 2021 22:01:37 +0100 Subject: bpo-45613: Set `sqlite3.threadsafety` dynamically (GH-29227) Use the compile-time selected default SQLite threaded mode to set the DB-API 2.0 attribute 'threadsafety' Mappings: - SQLITE_THREADSAFE=0 => threadsafety=0 - SQLITE_THREADSAFE=1 => threadsafety=3 - SQLITE_THREADSAFE=2 => threadsafety=1 --- Lib/sqlite3/dbapi2.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'Lib/sqlite3/dbapi2.py') diff --git a/Lib/sqlite3/dbapi2.py b/Lib/sqlite3/dbapi2.py index cfe6225f46..7cf4dd32d5 100644 --- a/Lib/sqlite3/dbapi2.py +++ b/Lib/sqlite3/dbapi2.py @@ -28,8 +28,6 @@ from _sqlite3 import * paramstyle = "qmark" -threadsafety = 1 - apilevel = "2.0" Date = datetime.date -- cgit v1.2.1