diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-11-03 21:01:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-03 21:01:37 (GMT) |
commit | c2739867113a2b650db300c03ef06cf18dcee3f4 (patch) | |
tree | 859f757fe8859147d1efa51a86207771968c5a27 /Lib/sqlite3 | |
parent | 762173c6709f5cf3b59cbbe47d4e6fafbfe7ec2a (diff) | |
download | cpython-c2739867113a2b650db300c03ef06cf18dcee3f4.zip cpython-c2739867113a2b650db300c03ef06cf18dcee3f4.tar.gz cpython-c2739867113a2b650db300c03ef06cf18dcee3f4.tar.bz2 |
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
Diffstat (limited to 'Lib/sqlite3')
-rw-r--r-- | Lib/sqlite3/dbapi2.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/sqlite3/dbapi2.py b/Lib/sqlite3/dbapi2.py index cfe6225..7cf4dd3 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 |