Visitar URL original
bpo-45613: Set `sqlite3.threadsafety` dynamically by erlend-aasland · Pull Request #29227 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bail if get_threadsafety() fails
  • Loading branch information
Erlend E. Aasland
Erlend E. Aasland committed Nov 2, 2021
commit 686d70ff9423016ff989713fa32f3dfd82dc3bd6
3 changes: 3 additions & 0 deletions Modules/_sqlite/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ module_exec(PyObject *module)
}

int threadsafety = get_threadsafety(state);
if (threadsafety < 0) {
goto error;
}
if (PyModule_AddIntConstant(module, "threadsafety", threadsafety) < 0) {
goto error;
}
Expand Down